aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-redis/APKBUILD
blob: 1f2b814e5568a1e917090b99f0df8d2884e1ace8 (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
# 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"