diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-01 23:52:07 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-02 01:53:18 +0200 |
commit | be7b53e094467e6cf0fd12042e72c5c4623aa86b (patch) | |
tree | da2f74f67f6bb59169918fd61539c7c039411301 /community/php7-memcached | |
parent | 0f74d86b871dc04ca55a1a48e296ddb1b5a4edb3 (diff) | |
download | aports-be7b53e094467e6cf0fd12042e72c5c4623aa86b.tar.bz2 aports-be7b53e094467e6cf0fd12042e72c5c4623aa86b.tar.xz |
community/php7-memcached: move from testing
Diffstat (limited to 'community/php7-memcached')
-rw-r--r-- | community/php7-memcached/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/community/php7-memcached/APKBUILD b/community/php7-memcached/APKBUILD new file mode 100644 index 0000000000..3471813dde --- /dev/null +++ b/community/php7-memcached/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Fabio Ribeiro <fabiorphp@gmail.com> +# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com> +pkgname=php7-memcached +_pkgreal=memcached +pkgver=3.0.3 +pkgrel=1 +_phpver=${pkgname#php} +_phpver=${_phpver%%-*} +pkgdesc="PHP$_phpver extension for interfacing with memcached via libmemcached library" +url="http://pecl.php.net/package/memcached" +arch="all" +license="PHP" +depends="php$_phpver-common php$_phpver-session" +makedepends="php$_phpver-dev autoconf zlib-dev libmemcached-dev cyrus-sasl-dev" +source="$pkgname-$pkgver.tgz::http://pecl.php.net/get/$_pkgreal-$pkgver.tgz" +options="!check" # tests fail b/c of not loaded session module +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + cd "$builddir" + + phpize$_phpver + ./configure \ + --prefix=/usr \ + --with-php-config=php-config$_phpver \ + --disable-memcached-sasl + make +} + +package() { + local confdir="$pkgdir/etc/php$_phpver/conf.d" + cd "$builddir" + + make INSTALL_ROOT="$pkgdir" install + + mkdir -p "$confdir" + echo "extension=$_pkgreal.so" > "$confdir"/20_$_pkgreal.ini +} + +sha512sums="cb24d76f82ce8c1fdd8877bbb46131545bba5011cfff965e3c190b7c0f71f754b47ded6289d3125724d9de781b916971aaadfa0b247c6fe2f51aab77dce61b61 php7-memcached-3.0.3.tgz" |