diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/php-memcache |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/php-memcache')
-rw-r--r-- | community/php-memcache/PKGBUILD | 33 | ||||
-rw-r--r-- | community/php-memcache/php-memcache.install | 10 |
2 files changed, 43 insertions, 0 deletions
diff --git a/community/php-memcache/PKGBUILD b/community/php-memcache/PKGBUILD new file mode 100644 index 000000000..f60e2edc5 --- /dev/null +++ b/community/php-memcache/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 28768 2010-10-05 18:31:24Z foutrelis $ +# Maintainer: Evangelos Foutras <foutrelis@gmail.com> + +pkgname=php-memcache +pkgver=3.0.5 +pkgrel=1 +pkgdesc="Memcache module for PHP" +arch=('i686' 'x86_64') +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=('2c7429a2d6b861a9d4ed0b9ad3cf0231') + +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: diff --git a/community/php-memcache/php-memcache.install b/community/php-memcache/php-memcache.install new file mode 100644 index 000000000..fa56baf81 --- /dev/null +++ b/community/php-memcache/php-memcache.install @@ -0,0 +1,10 @@ +post_install() { + echo ' + ==> PHP extension + + A config file was stored under /etc/php/conf.d/. In order to use this + extension make sure to uncomment it from its config file. + ' +} + +# vim:set ts=2 sw=2 et: |