Commit 894c438d authored by tcely's avatar tcely Committed by Ariadne Conill

main/libmemcached: Add depend on cyrus-sasl-dev to libmemcached-dev

parent 66dfb554
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmemcached
pkgver=1.0.18
pkgrel=1
pkgrel=2
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=""
makedepends="$depends_dev cyrus-sasl-dev"
depends_dev="cyrus-sasl-dev"
makedepends="$depends_dev memcached-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://launchpad.net/libmemcached/${pkgver%.*}/${pkgver}/+download/libmemcached-${pkgver}.tar.gz
musl-fixes.patch
"
source="https://launchpad.net/${pkgname}/${pkgver%.*}/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz
musl-fixes.patch"
_builddir="$srcdir"/libmemcached-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$_builddir"
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -35,15 +26,18 @@ build() {
--disable-static \
--enable-sasl \
--enable-libmemcachedprotocol \
--enable-memaslap \
|| return 1
make || return 1
--enable-memaslap
make
}
check() {
cd "$builddir"
make check || { find . -name 'test-suite.log' -exec cat '{}' ';'; return 1; }
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
return 0
cd "$builddir"
make -j1 AM_MAKEFLAGS= DESTDIR="$pkgdir" install
}
md5sums="b3958716b4e53ddc5992e6c49d97e819 libmemcached-1.0.18.tar.gz
......
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