mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
39 lines
1.5 KiB
Text
39 lines
1.5 KiB
Text
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
pkgname=php7-redis
|
|
_pkgreal=redis
|
|
_pkgrepo=phpredis
|
|
pkgver=3.0.0
|
|
# There's no tag for php7 variant; this is SHA of the commit in the php7 branch
|
|
# with version bump.
|
|
_pkgrev=64479400a0b3c7b8b006e5de905836e4d764a763
|
|
pkgrel=1
|
|
pkgdesc="PHP extension for interfacing with Redis (Dev PHP7)"
|
|
url="https://github.com/$_pkgrepo/$_pkgrepo/tree/php7"
|
|
arch="x86_64 armhf"
|
|
license="PHP"
|
|
depends="php7-session"
|
|
pecldepends="php7-dev autoconf"
|
|
makedepends="$pecldepends"
|
|
install=""
|
|
subpackages=""
|
|
source="$_pkgrepo-$_pkgrev.tar.gz::https://github.com/$_pkgrepo/$_pkgrepo/archive/$_pkgrev.tar.gz"
|
|
builddir="$srcdir/$_pkgrepo-$_pkgrev"
|
|
|
|
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="b9715c6b71e1461e06f42d52aa9d3672 phpredis-64479400a0b3c7b8b006e5de905836e4d764a763.tar.gz"
|
|
sha256sums="b1dd5138030ee7dfb71e15b6a08f7fae7f757c1b04797eeb409a142c6a2cc400 phpredis-64479400a0b3c7b8b006e5de905836e4d764a763.tar.gz"
|
|
sha512sums="9ab5efbf2cd87a2ce7fca7088001951bd07ab85ceafff4953af4994086f5934eb36b19763045bb85d479432cd0803254202072faaf11fbdccec82a7c4a8d2c18 phpredis-64479400a0b3c7b8b006e5de905836e4d764a763.tar.gz"
|