diff options
Diffstat (limited to 'testing/php7-lzf')
-rw-r--r-- | testing/php7-lzf/APKBUILD | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/testing/php7-lzf/APKBUILD b/testing/php7-lzf/APKBUILD index 8ce1611091..824ecac4ca 100644 --- a/testing/php7-lzf/APKBUILD +++ b/testing/php7-lzf/APKBUILD @@ -4,32 +4,32 @@ pkgname=php7-lzf _pkgreal=LZF _pkgextname=lzf pkgver=1.6.6 -_pkgver=${pkgver} -pkgrel=0 +pkgrel=1 pkgdesc="This package handles LZF de/compression." url="http://pecl.php.net/package/$_pkgreal" arch="all" license="PHP" -depends= -pecldepends="php7-dev autoconf" -makedepends="$pecldepends" -install="" -subpackages="" -source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz" - -builddir="$srcdir"/$_pkgreal-$_pkgver +depends="" +makedepends="php7-dev autoconf" +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 +} + +check() { + cd "$builddir" + make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test } 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=$_pkgextname.so" > "$pkgdir"/etc/php7/conf.d/50_$_pkgreal.ini } |