1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/php8-pecl-memcache/APKBUILD
2022-10-31 17:09:29 +00:00

35 lines
1.2 KiB
Text

# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-pecl-memcache
_extname=memcache
pkgver=8.0
pkgrel=0
pkgdesc="PHP 8 memcache extension, provides handy OO and procedural interfaces, can be used as session handler - PECL"
url="https://pecl.php.net/package/memcache"
arch="all"
license="PHP-3.0"
depends="php8-session"
makedepends="php8-dev"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz
version-fix.patch" # https://github.com/websupport-sk/pecl-memcache/pull/81
builddir="$srcdir/$_extname-$pkgver"
build() {
phpize8
./configure --prefix=/usr --with-php-config=php-config8
make
}
check() {
# Tests require 3 memcached servers, basic check, see tests/memcache.sh
php8 -dextension=modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php8/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
sha512sums="d5eea13b85d8d35ef6aab8c5699bdcc4707cf8debf4052cbbeac26e7e2360a4d3d4e55e8bd0b40cf19fe014ba1fc42d5417deabbe22a199f0c6aa98b67d132d4 php-pecl-memcache-8.0.tgz
72ce38df52e1a444a1d9b404c12ef9e7fc1dce2914838879d2bf4a42215a5e1e558f9a6bc21fa6feae6f50fb7843259119baef23925e0ae9834d67b8533f3cf2 version-fix.patch"