projects/aports·blob master · refs

51 lines · 1.5 KiB

1# Contributor: Fabio Ribeiro <[email protected]>
2# Maintainer: Andy Postnikov <[email protected]>
3pkgname=php86-pecl-redis
4_extname=redis
5pkgver=6.3.0
6_pkgver=${pkgver/_rc/RC}
7pkgrel=1
8pkgdesc="PHP 8.6 extension for interfacing with Redis - PECL"
9url="https://pecl.php.net/package/redis"
10arch="all"
11license="PHP-3.01"
12_phpv=86
13_php=php$_phpv
14depends="$_php-pecl-igbinary $_php-pecl-msgpack $_php-session"
15makedepends="$_php-dev lz4-dev zstd-dev"
16source="php-pecl-$_extname-$_pkgver.tgz::https://pecl.php.net/get/$_extname-$_pkgver.tgz
17 php86-support.patch"
18builddir="$srcdir/$_extname-$_pkgver"
19provides="$_php-redis=$pkgver-r$pkgrel" # for backward compatibility
20replaces="$_php-redis" # for backward compatibility
21
22install_if="php-$_extname php$_phpv"
23
24build() {
25 phpize$_phpv
26 ./configure --prefix=/usr --with-php-config=php-config$_phpv \
27 --enable-redis-igbinary \
28 --enable-redis-lz4 --with-liblz4 \
29 --enable-redis-lzf \
30 --enable-redis-msgpack \
31 --enable-redis-zstd
32 make
33}
34
35check() {
36 # Need running redis server
37 $_php -d extension=modules/$_extname.so --ri $_extname
38}
39
40package() {
41 make INSTALL_ROOT="$pkgdir" install
42
43 local _confdir="$pkgdir"/etc/$_php/conf.d
44 mkdir -p $_confdir
45 echo "extension=$_extname" > $_confdir/20_$_extname.ini
46}
47
48sha512sums="
491c6d43bf1a5766c8127ba16ace0a605088a5bd68661e4b30475a93e560ba2640d0acd4e41af20e9fcf8fbf8249bdb687eec86847a5110aeaca92b0f320eab2e2 php-pecl-redis-6.3.0.tgz
50cf17fca18fcd2877558638ca8cdf7b82c9039baf8486dafea0787e11d58ab0cf100994a05556a44d06b6fb8e6dc6f3bca13b9c06d596a49dd9e3cf597e417cca php86-support.patch
51"