blob: cd8609b7457d9a6f8ee06b676ef2dd9fa7c28fca (
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
|
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-redis
_pkgreal=redis
pkgver=3.1.2
pkgrel=1
_phpver=${pkgname#php}
_phpver=${_phpver%%-*}
pkgdesc="PHP$_phpver extension for interfacing with Redis"
url="https://pecl.php.net/package/redis"
arch="all"
license="PHP"
depends="php$_phpver-common php$_phpver-session"
makedepends="php$_phpver-dev autoconf"
source="$pkgname-$pkgver.tgz::http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
options="!check"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
cd "$builddir"
phpize$_phpver
./configure --prefix=/usr --with-php-config=php-config$_phpver
make
}
package() {
local confdir="$pkgdir/etc/php$_phpver/conf.d"
cd "$builddir"
make INSTALL_ROOT="$pkgdir" install
mkdir -p "$confdir"
echo "extension=$_pkgreal.so" > "$confdir"/20_$_pkgreal.ini
}
sha512sums="14b6321072f8ab41b8293b40ea8e1e2bdac1bb694c4566467ea4e6ced37c8fc41bf5712bd27cebf509f25fda0492765cd2c8d2fe61395bcb0b0d9cbbceebe684 php7-redis-3.1.2.tgz"
|