diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-04-07 12:48:32 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-04-07 12:50:10 +0000 |
commit | 67187fb25cad4f7fdfe70c08f15710fe0d069414 (patch) | |
tree | f867d3d0b2985b0ad1ecf0a585ad9fadac3e07ad /community/php7-pear-net_smtp | |
parent | 87921aecceb977f436cbcf62dc7415dd2c8e9005 (diff) | |
download | aports-67187fb25cad4f7fdfe70c08f15710fe0d069414.tar.bz2 aports-67187fb25cad4f7fdfe70c08f15710fe0d069414.tar.xz |
community/php7-pear-net_smtp: new aport
Diffstat (limited to 'community/php7-pear-net_smtp')
-rw-r--r-- | community/php7-pear-net_smtp/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/php7-pear-net_smtp/APKBUILD b/community/php7-pear-net_smtp/APKBUILD new file mode 100644 index 0000000000..0f6d9edb49 --- /dev/null +++ b/community/php7-pear-net_smtp/APKBUILD @@ -0,0 +1,39 @@ +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +_php=php7 +pkgname=${_php}-pear-net_smtp +_pkgreal=Net_SMTP +pkgver=1.7.3 +pkgrel=0 +pkgdesc="An implementation of the SMTP protocol" +url="http://pear.php.net/package/Net_SMTP" +arch="noarch" +license="PHP" +depends="${_php}-pear ${_php}-pear-net_socket" +options="!check" +subpackages="$pkgname-doc" +source="http://download.pear.php.net/package/$_pkgreal-$pkgver.tgz" +builddir="$srcdir"/$_pkgreal-$pkgver + +_phpdir="usr/lib/${_php}" + +package() { + cd "$builddir" + for dir in doc example test; do + install -d "$pkgdir"/$_phpdir/$dir/$_pkgreal + done + 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 +} + +doc() { + cd "$builddir" + install -d "$subpkgdir"/$_phpdir/doc + mv "$pkgdir"/$_phpdir/doc/$_pkgreal \ + "$subpkgdir"/$_phpdir/doc +} + +sha512sums="b1c2be95c50151e91c2dcc7b9d98233504cc2389c01e4e42e752cba606355da616e570ca86042b68498aad63aaad14ea048b0a0e4e2baa802dc58c440eb60f15 Net_SMTP-1.7.3.tgz" |