aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/php7-pecl-redis/APKBUILD (renamed from community/php7-redis/APKBUILD)25
1 files changed, 13 insertions, 12 deletions
diff --git a/community/php7-redis/APKBUILD b/community/php7-pecl-redis/APKBUILD
index 4c521d556d..a2193d30a9 100644
--- a/community/php7-redis/APKBUILD
+++ b/community/php7-pecl-redis/APKBUILD
@@ -1,31 +1,32 @@
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
-pkgname=php7-redis
+pkgname=php7-pecl-redis
_pkgreal=redis
pkgver=4.1.1
-pkgrel=0
-_phpver=${pkgname#php}
-_phpver=${_phpver%%-*}
-pkgdesc="PHP$_phpver extension for interfacing with Redis"
+pkgrel=1
+pkgdesc="PHP extension for interfacing with Redis - PECL"
url="https://pecl.php.net/package/redis"
arch="all"
-license="PHP"
-depends="php$_phpver-common php$_phpver-session"
-makedepends="php$_phpver-dev autoconf"
+license="PHP-3.01"
+depends="php7-common php7-pecl-igbinary php7-session"
+makedepends="php7-dev autoconf re2c"
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
options="!check" # Need running redis server
builddir="$srcdir/$_pkgreal-$pkgver"
+provides="php7-redis=$pkgver-r$pkgrel" # for backward compatibility
+replaces="php7-redis" # for backward compatibility
build() {
cd "$builddir"
- phpize$_phpver
- ./configure --prefix=/usr --with-php-config=php-config$_phpver
+ phpize7
+ ./configure --prefix=/usr --with-php-config=php-config7 \
+ --enable-redis-igbinary
make
}
package() {
- local confdir="$pkgdir/etc/php$_phpver/conf.d"
+ local confdir="$pkgdir/etc/php7/conf.d"
cd "$builddir"
make INSTALL_ROOT="$pkgdir" install
@@ -34,4 +35,4 @@ package() {
echo "extension=$_pkgreal.so" > "$confdir"/20_$_pkgreal.ini
}
-sha512sums="f4cc438c81c8b5119889be1004ac1b3ac689554a31ad81516ce50249fa748c225883413da687f15a00279eff0269e5d4c992809f8d88cc49e848def511d3e623 php7-redis-4.1.1.tgz"
+sha512sums="f4cc438c81c8b5119889be1004ac1b3ac689554a31ad81516ce50249fa748c225883413da687f15a00279eff0269e5d4c992809f8d88cc49e848def511d3e623 php7-pecl-redis-4.1.1.tgz"