aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-redis/APKBUILD
blob: 499575e6a7a927cafa6b270c7aa8082b422839dc (plain) (blame)
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=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"
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="a7f290e3b74e1f37375cfaeafb013eae708a9c4047904467a4a272868ac22a11d39a2f2b462ba708605744f1fae89836909d041d51c1138993c48a6619de9fe6  php7-pecl-redis-4.2.0.tgz"