summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Lamskoy2018-06-07 16:58:19 +0300
committerEugene Lamskoy2018-06-07 16:58:19 +0300
commit024dbb6536d95d006f99a8f8aa628be92eefb342 (patch)
tree695b7485296b6ce241b18a28f3c2631cfdf4f695
downloadaur-024dbb6536d95d006f99a8f8aa628be92eefb342.tar.gz
initial
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD30
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0b40a73b742
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Thu Jun 7 13:52:09 UTC 2018
+pkgbase = php70-redis
+ pkgdesc = PHP extension for interfacing with Redis
+ pkgver = 4.0.2
+ pkgrel = 1
+ url = http://pecl.php.net/package/redis
+ arch = x86_64
+ license = PHP
+ makedepends = php70
+ depends = php70
+ conflicts = phpredis-git
+ conflicts = phpredis
+ conflicts = php-redis
+ backup = etc/php70/conf.d/redis.ini
+ source = http://pecl.php.net/get/redis-4.0.2.tgz
+ sha256sums = 36fa980831091efca6586fa347283f79587293aa93c7d42e948e6137bfd90ac8
+
+pkgname = php70-redis
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..6d79d3184de
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+redis-*
+php-redis*
+*.tar.xz \ No newline at end of file
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"
+}