diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-01 23:29:05 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-02 01:53:18 +0200 |
commit | 5f5879f3069a7eeabd56c5a129bd75a815eaa71f (patch) | |
tree | 8f522ce709602d5ffdb85fb4ec13b117d101ba9c | |
parent | efe17cceb33b76fb89724d99ae155d0d8c3ab786 (diff) | |
download | aports-5f5879f3069a7eeabd56c5a129bd75a815eaa71f.tar.bz2 aports-5f5879f3069a7eeabd56c5a129bd75a815eaa71f.tar.xz |
testing/php7-redis: cleanup and improve abuild
-rw-r--r-- | testing/php7-redis/APKBUILD | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/testing/php7-redis/APKBUILD b/testing/php7-redis/APKBUILD index c0752cb1b2..cd8609b745 100644 --- a/testing/php7-redis/APKBUILD +++ b/testing/php7-redis/APKBUILD @@ -3,33 +3,35 @@ pkgname=php7-redis _pkgreal=redis pkgver=3.1.2 -pkgrel=0 -pkgdesc="PHP extension for interfacing with Redis" +pkgrel=1 +_phpver=${pkgname#php} +_phpver=${_phpver%%-*} +pkgdesc="PHP$_phpver extension for interfacing with Redis" url="https://pecl.php.net/package/redis" arch="all" license="PHP" -depends="php7-session" -makedepends="php7-dev autoconf" -install="" -subpackages="" -source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz" - -builddir="$srcdir"/$_pkgreal-$pkgver +depends="php$_phpver-common php$_phpver-session" +makedepends="php$_phpver-dev autoconf" +source="$pkgname-$pkgver.tgz::http://pecl.php.net/get/$_pkgreal-$pkgver.tgz" +options="!check" +builddir="$srcdir/$_pkgreal-$pkgver" build() { cd "$builddir" - phpize7 || return 1 - ./configure --prefix=/usr --with-php-config=php-config7 || return 1 - make || return 1 + + phpize$_phpver + ./configure --prefix=/usr --with-php-config=php-config$_phpver + make } package() { + local confdir="$pkgdir/etc/php$_phpver/conf.d" cd "$builddir" - make INSTALL_ROOT="$pkgdir"/ install || return 1 - install -d "$pkgdir"/etc/php7/conf.d || return 1 - echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/20_$_pkgreal.ini + + make INSTALL_ROOT="$pkgdir" install + + mkdir -p "$confdir" + echo "extension=$_pkgreal.so" > "$confdir"/20_$_pkgreal.ini } -md5sums="90dbb6388c886356adea361df3c5c413 redis-3.1.2.tgz" -sha256sums="a7687d007e48bef92049b8f53b425244d663da57d6b646d139248839e01f4ea3 redis-3.1.2.tgz" -sha512sums="14b6321072f8ab41b8293b40ea8e1e2bdac1bb694c4566467ea4e6ced37c8fc41bf5712bd27cebf509f25fda0492765cd2c8d2fe61395bcb0b0d9cbbceebe684 redis-3.1.2.tgz" +sha512sums="14b6321072f8ab41b8293b40ea8e1e2bdac1bb694c4566467ea4e6ced37c8fc41bf5712bd27cebf509f25fda0492765cd2c8d2fe61395bcb0b0d9cbbceebe684 php7-redis-3.1.2.tgz" |