2016-04-06 05:34:38 +00:00

39 lines
1.2 KiB
Plaintext

# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-redis
_pkgreal=redis
_pkgrepo=phpredis
_pkgbranch=php7
pkgver=2.2.8
pkgrel=0
pkgdesc="PHP extension for interfacing with Redis (Dev PHP7)"
url="https://github.com/$_pkgrepo/$_pkgrepo/tree/$_pkgbranch"
arch="x86_64 armhf"
license="PHP"
depends=
pecldepends="php7-dev autoconf"
makedepends="$pecldepends"
install=""
subpackages=""
source="$_pkgrepo-$pkgver.tar.gz::https://github.com/$_pkgrepo/$_pkgrepo/archive/$_pkgbranch.tar.gz"
builddir="$srcdir"/$_pkgrepo-$_pkgbranch
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/$_pkgreal.ini
}
md5sums="6c47b6722d2970267e0f6b4f85cff675 phpredis-2.2.8.tar.gz"
sha256sums="9304805acbe5d7c9b4378279b27297bf1bddb96a66541c5e4b2fe22ffa2297f0 phpredis-2.2.8.tar.gz"
sha512sums="3c943d21d305dfa8db6c56760031ac2e0de26a6282de0ddbbd61926cb336c76160d3533087fa0198c45b3fb72fb2e9eae5d95189cb2dcace52861ce1a596b10f phpredis-2.2.8.tar.gz"