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

builddir="$srcdir"/$_pkgrepo-$_pkgcommit

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=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/20_$_pkgreal.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"