aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-redis/APKBUILD
blob: c0752cb1b2de2e8d83def4b352a49d1b6f08535f (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
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-redis
_pkgreal=redis
pkgver=3.1.2
pkgrel=0
pkgdesc="PHP extension for interfacing with Redis"
url="https://pecl.php.net/package/redis"
arch="all"
license="PHP"
depends="php7-session"
makedepends="php7-dev autoconf"
install=""
subpackages=""
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"

builddir="$srcdir"/$_pkgreal-$pkgver

build() {
	cd "$builddir"
	phpize7 || return 1
	./configure --prefix=/usr --with-php-config=php-config7 || return 1
	make || return 1
}

package() {
	cd "$builddir"
	make INSTALL_ROOT="$pkgdir"/ install || return 1
	install -d "$pkgdir"/etc/php7/conf.d || return 1
	echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/20_$_pkgreal.ini
}

md5sums="90dbb6388c886356adea361df3c5c413  redis-3.1.2.tgz"
sha256sums="a7687d007e48bef92049b8f53b425244d663da57d6b646d139248839e01f4ea3  redis-3.1.2.tgz"
sha512sums="14b6321072f8ab41b8293b40ea8e1e2bdac1bb694c4566467ea4e6ced37c8fc41bf5712bd27cebf509f25fda0492765cd2c8d2fe61395bcb0b0d9cbbceebe684  redis-3.1.2.tgz"