[arch-commits] Commit in php-redis/repos/community-x86_64 (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Wed Jul 1 06:53:45 UTC 2020
Date: Wednesday, July 1, 2020 @ 06:53:45
Author: dvzrv
Revision: 657240
archrelease: copy trunk to community-x86_64
Added:
php-redis/repos/community-x86_64/PKGBUILD
(from rev 657239, php-redis/trunk/PKGBUILD)
Deleted:
php-redis/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 120 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 60 insertions(+), 60 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-01 06:53:40 UTC (rev 657239)
+++ PKGBUILD 2020-07-01 06:53:45 UTC (rev 657240)
@@ -1,60 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-pkgname=php-redis
-_name=redis
-_upstream=phpredis
-pkgver=5.2.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=('38d532a852626db5ccd722c1e70586cf769850ab30a67b56b5692bc1e8544399954ac50855f5695d588ccbfff510fb975a07405de73c5cb20057858dda6eea5a')
-
-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 657239, php-redis/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-07-01 06:53:45 UTC (rev 657240)
@@ -0,0 +1,60 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=php-redis
+_name=redis
+_upstream=phpredis
+pkgver=5.3.0
+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=('6c1bcc5a4626ec67901468acc7c645b0b3db93b2805d6a72b645001e81894a00a9f5f6a0e0aeff4ea2a51055f9c8e764e821b51f5848a566c03204fc8ef1db79')
+
+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