aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-memcached/APKBUILD
blob: f72966ed04f9e4e4e5aa99282582b146e1976931 (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
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-memcached
_pkgname=php-memcached
_gitrev=583ecd68faec886ac9233277531f78fb6e2043c7
pkgver=3.0_pre20160808
pkgrel=0
pkgdesc="PHP extension for interfacing with memcached via libmemcached library"
url="https://github.com/php-memcached-dev/php-memcached"
arch="all"
license="PHP"
depends="php7-session"
pecldepends="php7-dev autoconf zlib-dev"
makedepends="$pecldepends libmemcached-dev cyrus-sasl-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/$_pkgname-dev/$_pkgname/archive/$_gitrev.tar.gz"
builddir="$srcdir/$_pkgname-$_gitrev"

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="081d43caf5a5cb4f70348280014e3da9  php7-memcached-3.0_pre20160808.tar.gz"
sha256sums="a770003ebc6bb2a4976dd9ebaa9304552575c5ed9e0c998d941bdd087fee106e  php7-memcached-3.0_pre20160808.tar.gz"
sha512sums="3e38885bb43aa26a69d101ad890fe73a4f545c76210450da25c067699b06c2ce7c94f900f8956ff38b5d68376bc2fadfd8c18e32a83df907a3437698c1c6ae84  php7-memcached-3.0_pre20160808.tar.gz"