# Maintainer: Leonardo Arena setvar _php = 'php7' setvar pkgname = "${_php}-pear-net_smtp" setvar _pkgreal = 'Net_SMTP' setvar pkgver = '1.8.0' setvar pkgrel = '1' setvar pkgdesc = ""An implementation of the SMTP protocol"" setvar url = ""http://pear.php.net/package/Net_SMTP"" setvar arch = ""noarch"" setvar license = ""PHP"" setvar depends = ""${_php}-pear ${_php}-pear-net_socket"" setvar options = ""!check"" setvar subpackages = ""$pkgname-doc"" setvar source = ""http://download.pear.php.net/package/$_pkgreal-$pkgver.tgz"" setvar builddir = ""$srcdir"/$_pkgreal-$pkgver" setvar _phpdir = ""usr/share/${_php}"" proc package { cd $builddir for dir in doc example test { install -d "$pkgdir"/$_phpdir/$dir/$_pkgreal } mv docs "$pkgdir"/$_phpdir/doc/$_pkgreal mv examples "$pkgdir"/$_phpdir/example/$_pkgreal mv tests "$pkgdir"/$_phpdir/test/$_pkgreal install -d "$pkgdir"/$_phpdir/PEAR mv Net "$pkgdir"/$_phpdir/PEAR install -Dm0644 LICENSE "$pkgdir"/$_phpdir/doc/$_pkgreal/LICENSE } proc doc { cd $builddir install -d "$subpkgdir"/$_phpdir/doc mv "$pkgdir"/$_phpdir/doc/$_pkgreal \ "$subpkgdir"/$_phpdir/doc } setvar sha512sums = ""894397aea9a0dd7a85544040a3ccee5c22779ad0d473fd63710845f2ecc4efc0103046ee893eee84c1a5afbbfb78a06849f40c486a3ecaaf798fd5d046acf42c Net_SMTP-1.8.0.tgz""