[arch-commits] Commit in php-redis/repos/community-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Sat Aug 31 00:27:20 UTC 2019


    Date: Saturday, August 31, 2019 @ 00:27:20
  Author: dvzrv
Revision: 505538

archrelease: copy trunk to community-x86_64

Added:
  php-redis/repos/community-x86_64/PKGBUILD
    (from rev 505537, php-redis/trunk/PKGBUILD)
Deleted:
  php-redis/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  115 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 58 insertions(+), 57 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-31 00:27:15 UTC (rev 505537)
+++ PKGBUILD	2019-08-31 00:27:20 UTC (rev 505538)
@@ -1,57 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-
-pkgname=php-redis
-_name=redis
-_upstream=phpredis
-pkgver=5.0.2
-pkgrel=1
-pkgdesc="An API for communicating with the Redis key-value store"
-arch=('x86_64')
-url="https://github.com/phpredis/phpredis/"
-license=('PHP')
-depends=('php-igbinary' 'liblzf')
-checkdepends=('lsof' 'redis')
-optdepends=('redis: use a local redis instance')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/${_upstream}/${_upstream}/archive/${pkgver}.tar.gz")
-sha512sums=('34ae9bc63a2a523d4536e467b58159a5141027db6e417b2227c686aab56e159d1d3fc5135223baa01135a7b3c87dbe672118b34317c7514e717159b67cc5380e')
-
-prepare() {
-  mv -v "${_upstream}-${pkgver}" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
-  # tempfile is non-standard, Debian only
-  sed -e 's/tempfile/mktemp/g' -i tests/mkring.sh
-  # the kill after shutdown of redis makes it exit with status code 1
-  sed -e '/kill -9/d' -i tests/mkring.sh
-  # disable the extension by default
-  echo ";extension=${_name}" > "${_name}.ini"
-  phpize
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  ./configure --prefix=/usr \
-              --enable-redis-igbinary \
-              --enable-redis-lzf \
-              --with-liblzf=/usr/lib/
-  make
-}
-
-check() {
-  # tests are partly broken:
-  # https://github.com/phpredis/phpredis/issues/1593
-  export TEST_PHP_EXECUTABLE=/usr/bin/php
-  export TEST_PHP_ARGS="-d extension=igbinary -d extension=${srcdir}/${pkgname}-${pkgver}/modules/redis.so"
-  cd "$pkgname-$pkgver"
-  tests/mkring.sh start
-  $TEST_PHP_EXECUTABLE $TEST_PHP_ARGS tests/TestRedis.php --class Redis
-  $TEST_PHP_EXECUTABLE $TEST_PHP_ARGS tests/TestRedis.php --class RedisArray
-  tests/mkring.sh stop
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  make INSTALL_ROOT="$pkgdir/" install
-  install -vDm 644 "${_name}.ini" -t "${pkgdir}/etc/php/conf.d/"
-  install -vDm 644 {{README,arrays,cluster}.markdown,CREDITS} \
-    -t "${pkgdir}/usr/share/doc/${pkgname}/"
-}

Copied: php-redis/repos/community-x86_64/PKGBUILD (from rev 505537, php-redis/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-31 00:27:20 UTC (rev 505538)
@@ -0,0 +1,58 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+
+pkgname=php-redis
+_name=redis
+_upstream=phpredis
+pkgver=5.0.2
+pkgrel=2
+pkgdesc="An API for communicating with the Redis key-value store"
+arch=('x86_64')
+url="https://github.com/phpredis/phpredis/"
+license=('PHP')
+depends=('php-igbinary' 'liblzf')
+checkdepends=('lsof' 'redis')
+optdepends=('redis: use a local redis instance')
+backup=("etc/php/conf.d/${_name}.ini")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/${_upstream}/${_upstream}/archive/${pkgver}.tar.gz")
+sha512sums=('34ae9bc63a2a523d4536e467b58159a5141027db6e417b2227c686aab56e159d1d3fc5135223baa01135a7b3c87dbe672118b34317c7514e717159b67cc5380e')
+
+prepare() {
+  mv -v "${_upstream}-${pkgver}" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  # tempfile is non-standard, Debian only
+  sed -e 's/tempfile/mktemp/g' -i tests/mkring.sh
+  # the kill after shutdown of redis makes it exit with status code 1
+  sed -e '/kill -9/d' -i tests/mkring.sh
+  # disable the extension by default
+  echo ";extension=${_name}" > "${_name}.ini"
+  phpize
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  ./configure --prefix=/usr \
+              --enable-redis-igbinary \
+              --enable-redis-lzf \
+              --with-liblzf=/usr/lib/
+  make
+}
+
+check() {
+  # tests are partly broken:
+  # https://github.com/phpredis/phpredis/issues/1593
+  export TEST_PHP_EXECUTABLE=/usr/bin/php
+  export TEST_PHP_ARGS="-d extension=igbinary -d extension=${srcdir}/${pkgname}-${pkgver}/modules/redis.so"
+  cd "$pkgname-$pkgver"
+  tests/mkring.sh start
+  $TEST_PHP_EXECUTABLE $TEST_PHP_ARGS tests/TestRedis.php --class Redis
+  $TEST_PHP_EXECUTABLE $TEST_PHP_ARGS tests/TestRedis.php --class RedisArray
+  tests/mkring.sh stop
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  make INSTALL_ROOT="$pkgdir/" install
+  install -vDm 644 "${_name}.ini" -t "${pkgdir}/etc/php/conf.d/"
+  install -vDm 644 {{README,arrays,cluster}.markdown,CREDITS} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}



More information about the arch-commits mailing list