blob: 30cf4ed2d4d873bbdc368c83e4ee849cabf8b7c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-pecl-redis
_pkgreal=redis
pkgver=5.1.0
pkgrel=0
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 php7-json"
makedepends="php7-dev autoconf re2c"
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
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
}
check() {
# Need running redis server
php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal
}
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="9d4aa6728cc91bb62b9496172e5ed1cd4f789a4ce100dd297c8964fcdb4ad921f4a3e2374e3a7febf19cd2fc5af5892f6dcf2f56e908f15dfb410c1b829d6a4c php7-pecl-redis-5.1.0.tgz"
|