blob: 570235e69fe55a1a0173158a1fcc7f5c693e6560 (
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
41
42
43
44
45
46
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmemcached
pkgver=1.0.18
pkgrel=3
pkgdesc="Client library and command line tools for memcached server"
url="http://libmemcached.org/"
arch="all"
license="BSD"
options="!check" # tests are broken
depends=""
depends_dev="cyrus-sasl-dev"
makedepends="$depends_dev memcached-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://launchpad.net/${pkgname}/${pkgver%.*}/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz
fix-ppc64le-ptr-check.patch
musl-fixes.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-static \
--enable-sasl \
--enable-libmemcachedprotocol \
--enable-memaslap
make
}
check() {
cd "$builddir"
make check || { find . -name 'test-suite.log' -exec cat '{}' ';'; return 1; }
}
package() {
cd "$builddir"
make -j1 AM_MAKEFLAGS= DESTDIR="$pkgdir" install
}
sha512sums="2d95fea63b8b6dc7ded42c3a88a54aad74d5a1d417af1247144dae4a88c3b639a3aabc0c2b66661ff69a7609a314efaaae236e10971af9c428a4bca0a0101585 libmemcached-1.0.18.tar.gz
ca92a91c1cbe6497195013d101a465899b9d84243f0416a9eef6fd4cec9e7f29667763891af5fd7fbbf20094a3ddf222a2d31f322909193bd65fa0dce20c73bc fix-ppc64le-ptr-check.patch
ff8f59d2b6d3b7d1d110ff3f1d03dbceba3a000271e69f465ffd02e77c0a092e6904b19ac4aea624a0622cec6a16ecd048f46107e011cb9011027ef71265aaf5 musl-fixes.patch"
|