summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5706a02715b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Timo Sarawinski <timo@it-kraut.net>
+
+pkgname=php80-memcached
+_pkgname=php-memcached
+pkgver=3.1.5
+pkgrel=1
+pkgdesc="PHP extension for interfacing with memcached via libmemcached library"
+arch=('x86_64')
+url="https://github.com/php-memcached-dev/php-memcached"
+license=('PHP')
+depends=('php80' 'libmemcached')
+makedepends=('git')
+backup=('etc/php80/conf.d/memcached.ini')
+source=("git+https://github.com/php-memcached-dev/php-memcached.git")
+sha256sums=('SKIP')
+
+
+build() {
+ cd "$srcdir/$_pkgname"
+
+ phpize80
+ ./configure --prefix=/usr --with-php-config=/usr/bin/php-config80
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+
+ make INSTALL_ROOT="$pkgdir" install
+
+ install -d "$pkgdir/etc/php80/conf.d"
+ echo ';extension=memcached.so' >"$pkgdir/etc/php80/conf.d/memcached.ini"
+}
+
+# vim:set ts=2 sw=2 et: