aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php-memcached
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2015-11-06 17:09:24 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-09 08:45:59 +0000
commit4e5a0ec5d9205964b099b3ebd9c18621a3145daa (patch)
tree69ac9d5e07964110e350b30febf4ca07e09a9a99 /testing/php-memcached
parent7d9aaee80c6c71b68f45374bdb564922daf0e717 (diff)
downloadaports-4e5a0ec5d9205964b099b3ebd9c18621a3145daa.tar.bz2
aports-4e5a0ec5d9205964b099b3ebd9c18621a3145daa.tar.xz
testing/php-memcached: new aport (http://bugs.alpinelinux.org/issues/4814)
Diffstat (limited to 'testing/php-memcached')
-rw-r--r--testing/php-memcached/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/php-memcached/APKBUILD b/testing/php-memcached/APKBUILD
new file mode 100644
index 0000000000..d940879141
--- /dev/null
+++ b/testing/php-memcached/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+pkgname=php-memcached
+_pkgreal=memcached
+pkgver=2.2.0
+_pkgver=${pkgver/_rc/RC}
+pkgrel=0
+pkgdesc="PHP extension for interfacing with memcached via libmemcached library"
+url="http://pecl.php.net/package/$_pkgreal"
+arch="all"
+license="PHP"
+depends=
+pecldepends="php-dev autoconf"
+makedepends="$pecldepends libmemcached-dev"
+install=""
+subpackages=""
+source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"
+
+_builddir="$srcdir"/$_pkgreal-$_pkgver
+
+build() {
+ cd "$_builddir"
+ phpize || return 1
+ ./configure \
+ --prefix=/usr \
+ --disable-memcached-sasl || 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="28937c6144f734e000c6300242f44ce6 memcached-2.2.0.tgz"
+sha256sums="17b9600f6d4c807f23a3f5c45fcd8775ca2e61d6eda70370af2bef4c6e159f58 memcached-2.2.0.tgz"
+sha512sums="61207d3f8c11b0620dbcb20fb2ebb6d1fc10159a7e879ee91556a303c3dcdf3d2571e8dda5efcbed77ff779f5c9b226aa48800630b9e7781cd964126b848c356 memcached-2.2.0.tgz"