Date: Tuesday, February 15, 2022 @ 23:03:27 Author: dvzrv Revision: 1133403
archrelease: copy trunk to community-x86_64 Added: php-redis/repos/community-x86_64/PKGBUILD (from rev 1133402, php-redis/trunk/PKGBUILD) Deleted: php-redis/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 204 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 102 insertions(+), 102 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-02-15 23:03:17 UTC (rev 1133402) +++ PKGBUILD 2022-02-15 23:03:27 UTC (rev 1133403) @@ -1,102 +0,0 @@ -# Maintainer: David Runge <dv...@archlinux.org> - -_name=redis -_upstream=phpredis -pkgbase=php-redis -pkgname=(php-redis php7-redis) -pkgver=5.3.6 -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=(glibc) -makedepends=(liblzf php-igbinary php7-igbinary) -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=('6e7a4d7f7632bad39cc70b9a068164953897ff9be8e42937d7ad894502671903a65152fe85a9b2f0547e7c37786b09d083f4366caf9d83966c8212865d754596') -b2sums=('40d946168a513e8e94af250a2eca367f03896e0d464aeafc4387e11df8b77b0168e879f50dfd323e00b8f3e140fc7f53489e4387a77d5b1239cc16d7c31a0061') - -prepare() { - mv -v "${_upstream}-${pkgver}" "$pkgbase-$pkgver" - # tempfile is non-standard, Debian only - sed -e 's/tempfile/mktemp/g' -i "$pkgname-$pkgver/tests/mkring.sh" - # the kill after shutdown of redis makes it exit with status code 1 - sed -e '/kill -9/d' -i "$pkgname-$pkgver/tests/mkring.sh" - # disable the extension by default - echo -e "; this extension requires igbinary to be activated as well\n;extension=${_name}" > "$pkgname-$pkgver/${_name}.ini" - - cp -av "$pkgbase-$pkgver" "${pkgname[1]}-$pkgver" - - ( - cd "$pkgbase-$pkgver" - phpize - ) - ( - cd "${pkgname[1]}-$pkgver" - phpize7 - ) -} - -build() { - ( - cd "$pkgname-$pkgver" - ./configure --prefix=/usr \ - --enable-redis-igbinary \ - --enable-redis-lzf \ - --with-liblzf=/usr/lib/ - make - ) - ( - cd "${pkgname[1]}-$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}/${pkgbase}-${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 - ) - ( - export TEST_PHP_EXECUTABLE=/usr/bin/php7 - export TEST_PHP_ARGS="-d extension=igbinary -d extension=${srcdir}/${pkgname[1]}-${pkgver}/modules/redis.so" - cd "${pkgname[1]}-$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_php-redis() { - depends+=(liblzf.so php-igbinary) - backup=("etc/php/conf.d/${_name}.ini") - - 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}/" -} - -package_php7-redis() { - depends+=(liblzf.so php7-igbinary) - backup=("etc/php7/conf.d/${_name}.ini") - - cd "$pkgname-$pkgver" - make INSTALL_ROOT="$pkgdir/" install - install -vDm 644 "${_name}.ini" -t "${pkgdir}/etc/php7/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 1133402, php-redis/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-02-15 23:03:27 UTC (rev 1133403) @@ -0,0 +1,102 @@ +# Maintainer: David Runge <dv...@archlinux.org> + +_name=redis +_upstream=phpredis +pkgbase=php-redis +pkgname=(php-redis php7-redis) +pkgver=5.3.7 +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) +makedepends=(liblzf php-igbinary php7-igbinary) +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=('394ad0d5a45e2f985a1622ab9ceca55fb0b8e5ee0631a8dd763984611260e55de43bea308710569fa360ee88e02791e9b28ecaea26f2b770dc168a82a2afb4b3') +b2sums=('32fbc8e716078ad8f08f3383042e7877aad50e7232425fb2fdae8e397e8750d2a06cc7311bd7962e6df39f3a5caf5748953dcf70de4f919ec58cd9d3ec4390a3') + +prepare() { + mv -v "${_upstream}-${pkgver}" "$pkgbase-$pkgver" + # tempfile is non-standard, Debian only + sed -e 's/tempfile/mktemp/g' -i "$pkgname-$pkgver/tests/mkring.sh" + # the kill after shutdown of redis makes it exit with status code 1 + sed -e '/kill -9/d' -i "$pkgname-$pkgver/tests/mkring.sh" + # disable the extension by default + echo -e "; this extension requires igbinary to be activated as well\n;extension=${_name}" > "$pkgname-$pkgver/${_name}.ini" + + cp -av "$pkgbase-$pkgver" "${pkgname[1]}-$pkgver" + + ( + cd "$pkgbase-$pkgver" + phpize + ) + ( + cd "${pkgname[1]}-$pkgver" + phpize7 + ) +} + +build() { + ( + cd "$pkgname-$pkgver" + ./configure --prefix=/usr \ + --enable-redis-igbinary \ + --enable-redis-lzf \ + --with-liblzf=/usr/lib/ + make + ) + ( + cd "${pkgname[1]}-$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}/${pkgbase}-${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 + ) + ( + export TEST_PHP_EXECUTABLE=/usr/bin/php7 + export TEST_PHP_ARGS="-d extension=igbinary -d extension=${srcdir}/${pkgname[1]}-${pkgver}/modules/redis.so" + cd "${pkgname[1]}-$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_php-redis() { + depends+=(liblzf.so php-igbinary) + backup=("etc/php/conf.d/${_name}.ini") + + 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}/" +} + +package_php7-redis() { + depends+=(liblzf.so php7-igbinary) + backup=("etc/php7/conf.d/${_name}.ini") + + cd "$pkgname-$pkgver" + make INSTALL_ROOT="$pkgdir/" install + install -vDm 644 "${_name}.ini" -t "${pkgdir}/etc/php7/conf.d/" + install -vDm 644 {{README,arrays,cluster}.markdown,CREDITS} -t "${pkgdir}/usr/share/doc/${pkgname}/" +}