Commit b540b737 authored by Andy Postnikov's avatar Andy Postnikov
Browse files

testing/php8-pecl-memcached: new aport

parent 2e995bf1
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php8-pecl-memcached
_extname=memcached
pkgver=3.1.5
pkgrel=0
pkgdesc="PHP extension for interfacing with memcached via libmemcached library - PECL"
url="https://pecl.php.net/package/memcached"
arch="all"
license="PHP-3.01"
depends="php8-session php8-pecl-igbinary"
makedepends="php8-dev zlib-dev libmemcached-dev cyrus-sasl-dev"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
build() {
phpize8
./configure \
--prefix=/usr \
--with-php-config=php-config8 \
--enable-memcached-igbinary \
--disable-memcached-sasl
make
}
check() {
# Tests require memcached server, basic check
php8 -d extension="$builddir"/modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php8/conf.d
mkdir -p $_confdir
echo "extension=$_extname" > $_confdir/20_$_extname.ini
}
sha512sums="87d5fd079fcaad81139785d6766da71b23a1a0fe907d4b22f3a787af148a20412c11df11c4d98c165241658baf0d87c8a6b29de15db07a0f9d1fabc8aec8f0e9 php-pecl-memcached-3.1.5.tgz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment