diff options
author | TBK <tbk@jjtc.dk> | 2018-03-21 16:10:29 +0100 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2018-03-29 23:54:43 +0300 |
commit | 0d855245681f6e3c80369713c80c5fdc4e064e7e (patch) | |
tree | a37cbe8c4dcbe6b8f5a49447053bffc21df7bc34 /testing/php7-lzf | |
parent | 5ff70a40efe6f085bb54f32bdb104f3f0c6d7e69 (diff) | |
download | aports-0d855245681f6e3c80369713c80c5fdc4e064e7e.tar.bz2 aports-0d855245681f6e3c80369713c80c5fdc4e064e7e.tar.xz |
testing/php7-lzf: modernize
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 } |