aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-memcache/APKBUILD
blob: 00c5814a9951d63a8f4a1984765579222895bbf5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-pecl-memcache
_pkgreal=memcache
pkgver=4.0.5.2
pkgrel=1
pkgdesc="PECL memcache extension, provides handy OO and procedural interfaces, can be used as session handler."
url="https://pecl.php.net/package/memcache"
arch="all"
license="PHP-3.01"
depends="php7-session"
makedepends="php7-dev autoconf re2c"
source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
provides="php7-memcache=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-memcache" # for backward compatibility

build() {
	phpize7
	./configure --prefix=/usr --with-php-config=php-config7
	make
}

check() {
	# Tests require memcached server, basic check, see tests/memcache.sh
	php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal
}

package() {
	make INSTALL_ROOT="$pkgdir"/ install
	install -d "$pkgdir"/etc/php7/conf.d
	echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
}

sha512sums="93e163acf3a6c28f16b5f0982105f6f558cceeb314b3f09ad71655d8a5adf64d23959f1a2f3589eb7e7a7e18c88ba8132014e13f697a737cd570cf9405137384  memcache-4.0.5.2.tgz"