blob: 05cd6673b770b32a0cbac2b00dce410d0eb929e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-memcached
_pkgreal=memcached
pkgver=3.0.4
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: not loaded session.so & need memcached sever
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="d0a0f9e99cbcc6829528554551dfacf0d943d54d4be60c9da708de82913a2a0bed7c51d594ae3ecf0c13b56064739f074ce6ada5d7433bdc7e26e8caf9cf5ca2 php7-memcached-3.0.4.tgz"
|