blob: a7a5b719056a54dbebfc0a4646457d1f751d134b (
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=4.0.0
pkgrel=0
_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="e4bf2294f696e468174c0fff9ed33831cf81c3548ce30ede01bc3c45a15cb87b9b9ea02899c451f63211be8cb37e953be138e93c16d9e0f12772b7b6d03e8dcd php7-redis-4.0.0.tgz"
|