diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-21 23:22:01 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-21 23:22:01 +0200 |
commit | 8dab81591766cc819feee750f0335ea1e76f0d29 (patch) | |
tree | 44318345e86453345ff8548c6243557795283065 /testing | |
parent | f2c71e1948fb15b9801965bb4f0c347b25da86f7 (diff) | |
download | aports-8dab81591766cc819feee750f0335ea1e76f0d29.tar.bz2 aports-8dab81591766cc819feee750f0335ea1e76f0d29.tar.xz |
testing/php7-libsodium: improve abuild
Diffstat (limited to 'testing')
-rw-r--r-- | testing/php7-libsodium/APKBUILD | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/testing/php7-libsodium/APKBUILD b/testing/php7-libsodium/APKBUILD index e9b9b07c03..ab8b93a183 100644 --- a/testing/php7-libsodium/APKBUILD +++ b/testing/php7-libsodium/APKBUILD @@ -3,32 +3,28 @@ pkgname=php7-libsodium _pkgreal=libsodium pkgver=2.0.4 -_pkgver=${pkgver} pkgrel=0 -pkgdesc="A simple, low-level PHP extension for libsodium." +pkgdesc="A simple, low-level PHP extension for libsodium" url="http://pecl.php.net/package/$_pkgreal" arch="all" license="PHP" -depends= -pecldepends="php7-dev autoconf libsodium-dev" -makedepends="$pecldepends" -install="" -subpackages="" -source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz" - -builddir="$srcdir"/$_pkgreal-$_pkgver +makedepends="php7-dev autoconf libsodium-dev" +source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz" +builddir="$srcdir/$_pkgreal-$pkgver" build() { cd "$builddir" - phpize7 || return 1 - ./configure --prefix=/usr --with-php-config=php-config7 || return 1 - make || return 1 + + phpize7 + ./configure --prefix=/usr --with-php-config=php-config7 + make } package() { cd "$builddir" - make INSTALL_ROOT="$pkgdir"/ install || return 1 - install -d "$pkgdir"/etc/php7/conf.d || return 1 + + make INSTALL_ROOT="$pkgdir"/ install + install -d "$pkgdir"/etc/php7/conf.d echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/50_$_pkgreal.ini } |