diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2018-08-18 12:33:18 +0300 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2018-10-20 20:05:20 +0300 |
commit | b594c639522166b3fd5d1ddc8b5fe1d58480a2f2 (patch) | |
tree | 2dda887ac5715d4d91b4ab04523a12e4793648dd /community/php7-pecl-redis | |
parent | f30ac0ede670917f6c71fec7c7f45748915a7d0a (diff) | |
download | aports-b594c639522166b3fd5d1ddc8b5fe1d58480a2f2.tar.bz2 aports-b594c639522166b3fd5d1ddc8b5fe1d58480a2f2.tar.xz |
community/php7-pecl-redis: renamed from php7-redis, modernize
Diffstat (limited to 'community/php7-pecl-redis')
-rw-r--r-- | community/php7-pecl-redis/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/community/php7-pecl-redis/APKBUILD b/community/php7-pecl-redis/APKBUILD new file mode 100644 index 0000000000..a2193d30a9 --- /dev/null +++ b/community/php7-pecl-redis/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Fabio Ribeiro <fabiorphp@gmail.com> +# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com> +pkgname=php7-pecl-redis +_pkgreal=redis +pkgver=4.1.1 +pkgrel=1 +pkgdesc="PHP extension for interfacing with Redis - PECL" +url="https://pecl.php.net/package/redis" +arch="all" +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" + + phpize7 + ./configure --prefix=/usr --with-php-config=php-config7 \ + --enable-redis-igbinary + make +} + +package() { + local confdir="$pkgdir/etc/php7/conf.d" + cd "$builddir" + + make INSTALL_ROOT="$pkgdir" install + + mkdir -p "$confdir" + echo "extension=$_pkgreal.so" > "$confdir"/20_$_pkgreal.ini +} + +sha512sums="f4cc438c81c8b5119889be1004ac1b3ac689554a31ad81516ce50249fa748c225883413da687f15a00279eff0269e5d4c992809f8d88cc49e848def511d3e623 php7-pecl-redis-4.1.1.tgz" |