[arch-commits] Commit in php-redis/repos/community-x86_64 (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Thu Oct 22 18:00:10 UTC 2020
Date: Thursday, October 22, 2020 @ 18:00:10
Author: dvzrv
Revision: 729337
archrelease: copy trunk to community-x86_64
Added:
php-redis/repos/community-x86_64/PKGBUILD
(from rev 729336, php-redis/trunk/PKGBUILD)
Deleted:
php-redis/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 121 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 61 insertions(+), 60 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-10-22 18:00:02 UTC (rev 729336)
+++ PKGBUILD 2020-10-22 18:00:10 UTC (rev 729337)
@@ -1,60 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-pkgname=php-redis
-_name=redis
-_upstream=phpredis
-pkgver=5.3.1
-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=('glibc' 'php-igbinary')
-makedepends=('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=('7ab11c9b6583e4ba1aabebd7323de7d38b90274c0bee395b7a994a0d70b35ddee1bb6b6e6407b5237b0440b11f9c27f864707259ec130624aee3b71e7cee3536')
-
-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 -e "; this extension requires igbinary to be activated as well\n;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() {
- depends+=('liblzf.so')
- 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 729336, php-redis/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-10-22 18:00:10 UTC (rev 729337)
@@ -0,0 +1,61 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=php-redis
+_name=redis
+_upstream=phpredis
+pkgver=5.3.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=('glibc' 'php-igbinary')
+makedepends=('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=('0b923ad3f46395f82be7fa89e27999bf3304fbeb17188185afe34d37310afe818e07548034e42c2471ed22b8f8d664eda9b8b0a359c8e1126126d95574410e25')
+b2sums=('65366666e11eb6a579b688ac9ba6720178c0cd835cf646b0a523c4acd900e9abca5d7445cba5462df327aaa04bbe64e5506615420ac8c21be29a59d76535196e')
+
+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 -e "; this extension requires igbinary to be activated as well\n;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() {
+ depends+=('liblzf.so')
+ 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