aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-memcached
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2018-10-21 01:34:27 +0300
committerAndy Postnikov <apostnikov@gmail.com>2018-10-21 01:41:38 +0300
commit81ef496c5c85067e91fc75030d0d5d02f6bebe42 (patch)
treed8406236a91dc779317aab7e30ca64c3fa7b5c82 /community/php7-pecl-memcached
parentb3d534d73c690baf458d9cda5dca5ee52ca9cafc (diff)
downloadaports-81ef496c5c85067e91fc75030d0d5d02f6bebe42.tar.bz2
aports-81ef496c5c85067e91fc75030d0d5d02f6bebe42.tar.xz
community/php7-pecl-memcached: renamed from php7-memcached, modernize
Diffstat (limited to 'community/php7-pecl-memcached')
-rw-r--r--community/php7-pecl-memcached/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/php7-pecl-memcached/APKBUILD b/community/php7-pecl-memcached/APKBUILD
new file mode 100644
index 0000000000..e598b6ade9
--- /dev/null
+++ b/community/php7-pecl-memcached/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
+# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
+pkgname=php7-pecl-memcached
+_pkgreal=memcached
+pkgver=3.0.4
+pkgrel=2
+pkgdesc="PHP extension for interfacing with memcached via libmemcached library"
+url="https://pecl.php.net/package/memcached"
+arch="all"
+license="PHP"
+depends="php7-common php7-session"
+makedepends="php7-dev autoconf zlib-dev libmemcached-dev cyrus-sasl-dev"
+source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
+options="!check" # tests fail: not loaded session.so & need memcached sever
+builddir="$srcdir/$_pkgreal-$pkgver"
+provides="php7-memcached=$pkgver-r$pkgrel" # for backward compatibility
+replaces="php7-memcached" # for backward compatibility
+
+build() {
+ cd "$builddir"
+
+ phpize7
+ ./configure \
+ --prefix=/usr \
+ --with-php-config=php-config7 \
+ --disable-memcached-sasl
+ make
+}
+
+package() {
+ local confdir="$pkgdir/etc/php7/conf.d"
+ cd "$builddir"
+
+ make INSTALL_ROOT="$pkgdir" install
+
+ mkdir -p "$confdir"
+ echo "extension=$_pkgreal.so" > "$confdir"/20_$_pkgreal.ini
+}
+
+sha512sums="d0a0f9e99cbcc6829528554551dfacf0d943d54d4be60c9da708de82913a2a0bed7c51d594ae3ecf0c13b56064739f074ce6ada5d7433bdc7e26e8caf9cf5ca2 php7-pecl-memcached-3.0.4.tgz"