aboutsummaryrefslogtreecommitdiffstats
path: root/main/php5-memcache/APKBUILD
blob: 1a8bc874ea7ccaa02feba63bd4406554deb368b8 (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
43
44
45
46
47
48
49
50
51
52
53
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_php=php5
pkgname=${_php}-memcache
_pkgreal=memcache
pkgver=3.0.8
_pkgver=${pkgver/_rc/RC}
pkgrel=5
pkgdesc="PHP extension memcache"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP"
depends=
pecldepends="${_php}-dev autoconf"
makedepends="$pecldepends zlib-dev"
install=""
subpackages=""
source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz
	memcache-faulty-inline.patch
	"

_builddir="$srcdir"/$_pkgreal-$_pkgver

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	phpize || return 1
	./configure --prefix=/usr || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make INSTALL_ROOT="$pkgdir"/ install || return 1
	install -d "$pkgdir"/etc/$_php/conf.d || return 1
	echo "extension=$_pkgreal.so" > "$pkgdir"/etc/$_php/conf.d/$_pkgreal.ini
}

md5sums="24505e9b263d2c77f8ae5e9b4725e7d1  memcache-3.0.8.tgz
15c48766f52bb560bbf02b5015800ef4  memcache-faulty-inline.patch"
sha256sums="2cae5b423ffbfd33a259829849f6000d4db018debe3e29ecf3056f06642e8311  memcache-3.0.8.tgz
f0eaec9c3f9715ea1cf7e75f2ae4a7e3558751058a1dc16ebe206e18682faf67  memcache-faulty-inline.patch"
sha512sums="916c6b21ab7c1021128626c0df35ef0b83cb76b6115fe7c45b003ca4f78ad9484bf3c998bc7ebdee19f84349ff1e56759f74e75aee5bc70b1de9a03c45a99bc3  memcache-3.0.8.tgz
236e0ae64e64d6874d0f3aa9951b14e6125c88250f5ffa876fa5906473a94fa9d70e95df2e6b9cc52fadcc90b1a3655cbac9dea5300b828ca4f70ca0e6b69ce5  memcache-faulty-inline.patch"