summaryrefslogtreecommitdiff
path: root/php-redis/Pkgfile
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2020-06-14 22:00:31 +0000
committerTim Biermann <tbier@posteo.de>2020-06-15 09:44:01 +0000
commit4774c26d1989fc3de24e26f73b2b559ab8357137 (patch)
treeb4b1dddadbd4489066f2e510722de61b00fece71 /php-redis/Pkgfile
parent22ea9a865a5ca05fe362fbe6b9dd388b95d223c7 (diff)
downloadcontrib-4774c26d1989fc3de24e26f73b2b559ab8357137.tar.gz
contrib-4774c26d1989fc3de24e26f73b2b559ab8357137.tar.xz
php-redis: initial commit, version 5.2.2
Diffstat (limited to 'php-redis/Pkgfile')
-rw-r--r--php-redis/Pkgfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/php-redis/Pkgfile b/php-redis/Pkgfile
new file mode 100644
index 000000000..52be185ff
--- /dev/null
+++ b/php-redis/Pkgfile
@@ -0,0 +1,23 @@
+# Description: A PHP extension for Redis
+# URL: https://github.com/phpredis/phpredis
+# Maintainer: Tim Biermann, tbier at posteo dot de
+# Depends on: php-igbinary liblzf
+# Optional: redis
+
+name=php-redis
+version=5.2.2
+release=2
+source=(https://github.com/phpredis/phpredis/archive/$version/$name-$version.tar.gz)
+
+build() {
+ cd phpredis-$version
+ echo -e "; this extension requires igbinary to be activated as well\n;extension=redis" > "redis.ini"
+ phpize
+ ./configure --prefix=/usr \
+ --enable-redis-igbinary \
+ --enable-redis-lzf \
+ --with-liblzf=/usr/lib/
+ make
+ make INSTALL_ROOT=$PKG/ install
+ install -vDm 644 redis.ini -t $PKG/etc/php/conf.d/
+}

Generated by cgit