mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 08:51:25 +02:00
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
pkgname=php7-pecl-redis
|
|
_pkgreal=redis
|
|
pkgver=4.2.0
|
|
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="b6325e5e1f9209a3431cbc236dab4578f796aa748481f9a3fcda6d297bf544b0f77269bc56c6e9ff32430dbe74bd08f6d22e9b04b0ecfb735aa562f680f56f8b php7-pecl-redis-4.2.0.tgz"
|