mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
44 lines
1.3 KiB
Text
44 lines
1.3 KiB
Text
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php81-pecl-redis
|
|
_extname=redis
|
|
pkgver=5.3.7_rc1
|
|
_pkgver=${pkgver/_rc/RC}
|
|
pkgrel=0
|
|
pkgdesc="PHP 8.1 extension for interfacing with Redis - PECL"
|
|
url="https://pecl.php.net/package/redis"
|
|
arch="all"
|
|
license="PHP-3.01"
|
|
depends="php81-pecl-igbinary php81-session"
|
|
makedepends="php81-dev lz4-dev zstd-dev"
|
|
source="php-pecl-$_extname-$_pkgver.tgz::https://pecl.php.net/get/$_extname-$_pkgver.tgz"
|
|
builddir="$srcdir/$_extname-$_pkgver"
|
|
provides="php81-redis=$pkgver-r$pkgrel" # for backward compatibility
|
|
replaces="php81-redis" # for backward compatibility
|
|
|
|
build() {
|
|
phpize81
|
|
./configure --prefix=/usr --with-php-config=php-config81 \
|
|
--enable-redis-igbinary \
|
|
--enable-redis-lz4 --with-liblz4 \
|
|
--enable-redis-lzf \
|
|
--enable-redis-zstd
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# Need running redis server
|
|
php81 -d extension=modules/$_extname.so --ri $_extname
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
local _confdir="$pkgdir"/etc/php81/conf.d
|
|
mkdir -p $_confdir
|
|
echo "extension=$_extname" > $_confdir/20_$_extname.ini
|
|
}
|
|
|
|
sha512sums="
|
|
8a41c5b1030eec93001b58ec8189797f8202fe4d45f722128398878eeac37fdd50b3713a3f7350c5cf23cf71022d8c1f47e742b79dd146de9c899825d3080402 php-pecl-redis-5.3.7RC1.tgz
|
|
"
|