summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorEugene Lamskoy2018-06-07 16:58:19 +0300
committerEugene Lamskoy2018-06-07 16:58:19 +0300
commit024dbb6536d95d006f99a8f8aa628be92eefb342 (patch)
tree695b7485296b6ce241b18a28f3c2631cfdf4f695 /PKGBUILD
downloadaur-024dbb6536d95d006f99a8f8aa628be92eefb342.tar.gz
initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8cd940f69fd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+_phpbase=php70
+pkgname=php70-redis
+pkgver=4.0.2
+pkgrel=1
+pkgdesc="PHP extension for interfacing with Redis"
+url="http://pecl.php.net/package/redis"
+arch=('x86_64')
+license=('PHP')
+makedepends=("${_phpbase}")
+depends=("${_phpbase}")
+conflicts=('phpredis-git' 'phpredis' 'php-redis')
+backup=("etc/${_phpbase}/conf.d/redis.ini")
+source=(
+ http://pecl.php.net/get/redis-${pkgver}.tgz
+)
+sha256sums=('36fa980831091efca6586fa347283f79587293aa93c7d42e948e6137bfd90ac8')
+
+build() {
+ cd "$srcdir/redis-$pkgver"
+ phpize70
+ ./configure --prefix=/usr --enable-redis-lzf
+ make
+}
+
+package() {
+ cd "$srcdir/redis-$pkgver"
+ make INSTALL_ROOT="$pkgdir" install
+ echo ';extension=redis.so' > redis.ini
+ install -Dm644 redis.ini "$pkgdir/etc/${_phpbase}/conf.d/redis.ini"
+}