mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
testing/php7-redis: PHP7 Redis package
This commit is contained in:
parent
11b0ec9392
commit
1fe480d194
38
testing/php7-redis/APKBUILD
Normal file
38
testing/php7-redis/APKBUILD
Normal file
@ -0,0 +1,38 @@
|
||||
# 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"
|
||||
Loading…
x
Reference in New Issue
Block a user