From 8dab81591766cc819feee750f0335ea1e76f0d29 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Fri, 21 Jul 2017 23:22:01 +0200 Subject: testing/php7-libsodium: improve abuild --- testing/php7-libsodium/APKBUILD | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'testing/php7-libsodium') 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 } -- cgit v1.2.3