mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 04:35:39 +03:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# 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"
|