aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-memcached/APKBUILD
blob: bfc2edaed29629f7a2904aa3f46715952e4551b1 (plain)
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
35
36
37
38
39
40
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-memcached
_pkgreal=memcached
pkgver=3.0.3
pkgrel=0
pkgdesc="PHP extension for interfacing with memcached via libmemcached library"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP"
depends="php7-session"
makedepends="php7-dev autoconf zlib-dev libmemcached-dev cyrus-sasl-dev"
install=""
subpackages=""
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"

builddir="$srcdir"/$_pkgreal-$pkgver

build() {
	cd "$builddir"

	phpize7 || return 1
	./configure \
		--prefix=/usr \
		--disable-memcached-sasl \
		--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=memcached.so" > "$pkgdir"/etc/php7/conf.d/20_memcached.ini
}

md5sums="001341afeded3724c19a740148737444  memcached-3.0.3.tgz"
sha256sums="5d1c29a1d5e391d6bb7b736a07e063d2f0834800673dd246d64ce1b73e47645d  memcached-3.0.3.tgz"
sha512sums="cb24d76f82ce8c1fdd8877bbb46131545bba5011cfff965e3c190b7c0f71f754b47ded6289d3125724d9de781b916971aaadfa0b247c6fe2f51aab77dce61b61  memcached-3.0.3.tgz"