summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD35
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..969a5336bb4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = php80-memcached
+ pkgdesc = PHP extension for interfacing with memcached via libmemcached library
+ pkgver = 3.1.5
+ pkgrel = 1
+ url = https://github.com/php-memcached-dev/php-memcached
+ arch = x86_64
+ license = PHP
+ makedepends = git
+ depends = php80
+ depends = libmemcached
+ backup = etc/php80/conf.d/memcached.ini
+ source = git+https://github.com/php-memcached-dev/php-memcached.git
+ sha256sums = SKIP
+
+pkgname = php80-memcached
+
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: