summaryrefslogtreecommitdiff
path: root/community/php-memcache/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/php-memcache/PKGBUILD')
-rw-r--r--community/php-memcache/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/php-memcache/PKGBUILD b/community/php-memcache/PKGBUILD
new file mode 100644
index 000000000..2f206f038
--- /dev/null
+++ b/community/php-memcache/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 44760 2011-04-11 15:50:58Z foutrelis $
+# Maintainer: Evangelos Foutras <foutrelis@gmail.com>
+
+pkgname=php-memcache
+pkgver=3.0.6
+pkgrel=1
+pkgdesc="Memcache module for PHP"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://pecl.php.net/package/memcache"
+license=('PHP')
+depends=('php')
+backup=('etc/php/conf.d/memcache.ini')
+install=php-memcache.install
+source=(http://pecl.php.net/get/memcache-$pkgver.tgz)
+md5sums=('23c2a1548f3fc7658b98b1c60e6d83b1')
+
+build() {
+ cd "$srcdir/memcache-$pkgver"
+
+ phpize
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/memcache-$pkgver"
+
+ make INSTALL_ROOT="$pkgdir" install
+ echo ';extension=memcache.so' >memcache.ini
+ install -Dm644 memcache.ini "$pkgdir/etc/php/conf.d/memcache.ini"
+}
+
+# vim:set ts=2 sw=2 et: