[arch-commits] Commit in php-memcache/repos (5 files)
Pierre Schmitz
pierre at archlinux.org
Mon Jan 18 17:45:08 UTC 2021
Date: Monday, January 18, 2021 @ 17:45:08
Author: pierre
Revision: 823586
db-move: moved php-memcache from [community-staging] to [community-testing] (x86_64)
Added:
php-memcache/repos/community-testing-x86_64/
php-memcache/repos/community-testing-x86_64/PKGBUILD
(from rev 823585, php-memcache/repos/community-staging-x86_64/PKGBUILD)
php-memcache/repos/community-testing-x86_64/php-memcache.install
(from rev 823585, php-memcache/repos/community-staging-x86_64/php-memcache.install)
php-memcache/repos/community-testing-x86_64/php7-memcache.install
(from rev 823585, php-memcache/repos/community-staging-x86_64/php7-memcache.install)
Deleted:
php-memcache/repos/community-staging-x86_64/
-----------------------+
PKGBUILD | 76 ++++++++++++++++++++++++++++++++++++++++++++++++
php-memcache.install | 10 ++++++
php7-memcache.install | 10 ++++++
3 files changed, 96 insertions(+)
Copied: php-memcache/repos/community-testing-x86_64/PKGBUILD (from rev 823585, php-memcache/repos/community-staging-x86_64/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-01-18 17:45:08 UTC (rev 823586)
@@ -0,0 +1,76 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=('php-memcache' 'php7-memcache')
+pkgver=8.0
+pkgrel=1
+pkgdesc="Memcache module for PHP"
+arch=('x86_64')
+url="https://pecl.php.net/package/memcache"
+license=('PHP')
+makedepends=('php' 'php7')
+checkdepends=('memcached')
+source=(https://pecl.php.net/get/memcache-$pkgver.tgz)
+sha256sums=('defe33e6f7831d82b7283b95e14a531070531acbf21278f3f0d7050505cf3395')
+
+prepare() {
+ cp -a memcache-$pkgver{,-php7}
+}
+
+build() {
+ cd memcache-$pkgver
+ phpize
+ ./configure --prefix=/usr
+ make
+
+ cd ../memcache-$pkgver-php7
+ phpize7
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ sed -i "s|^\(\$domainsocket =\) .*|\1 'unix://$PWD/memcached.sock';|" \
+ memcache-$pkgver{,-php7}/tests/connect.inc
+
+ memcached_pids=()
+ memcached -p 11211 -U 11211 >/dev/null & memcached_pids+=($!)
+ memcached -p 11212 -U 11212 >/dev/null & memcached_pids+=($!)
+ memcached -s "$PWD/memcached.sock" >/dev/null & memcached_pids+=($!)
+
+ local ret=0 dir=
+ for dir in memcache-$pkgver{,-php7}; do
+ cd "$srcdir/$dir"
+ make test NO_INTERACTION=1 REPORT_EXIT_STATUS=1 || ret=1
+ done
+
+ kill ${memcached_pids[@]}
+
+ return $ret
+}
+
+package_php-memcache() {
+ depends+=('php')
+ backup=('etc/php/conf.d/memcache.ini')
+ install=$pkgname.install
+
+ cd memcache-$pkgver
+
+ make INSTALL_ROOT="$pkgdir" install
+ install -d "$pkgdir/etc/php/conf.d"
+ echo ';extension=memcache.so' >"$pkgdir/etc/php/conf.d/memcache.ini"
+}
+
+package_php7-memcache() {
+ pkgdesc=${pkgdesc/PHP/PHP 7}
+ depends+=('php7')
+ backup=('etc/php7/conf.d/memcache.ini')
+ install=$pkgname.install
+
+ cd memcache-$pkgver-php7
+
+ make INSTALL_ROOT="$pkgdir" install
+ install -d "$pkgdir/etc/php7/conf.d"
+ echo ';extension=memcache.so' >"$pkgdir/etc/php7/conf.d/memcache.ini"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: php-memcache/repos/community-testing-x86_64/php-memcache.install (from rev 823585, php-memcache/repos/community-staging-x86_64/php-memcache.install)
===================================================================
--- community-testing-x86_64/php-memcache.install (rev 0)
+++ community-testing-x86_64/php-memcache.install 2021-01-18 17:45:08 UTC (rev 823586)
@@ -0,0 +1,10 @@
+post_install() {
+ echo '
+ ==> PHP extension
+
+ A config file was stored under /etc/php/conf.d/. In order to use this
+ extension make sure to uncomment it from its config file.
+ '
+}
+
+# vim:set ts=2 sw=2 et:
Copied: php-memcache/repos/community-testing-x86_64/php7-memcache.install (from rev 823585, php-memcache/repos/community-staging-x86_64/php7-memcache.install)
===================================================================
--- community-testing-x86_64/php7-memcache.install (rev 0)
+++ community-testing-x86_64/php7-memcache.install 2021-01-18 17:45:08 UTC (rev 823586)
@@ -0,0 +1,10 @@
+post_install() {
+ echo '
+ ==> PHP 7 extension
+
+ A config file was stored under /etc/php7/conf.d/. In order to use this
+ extension make sure to uncomment it from its config file.
+ '
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list