# Contributor: Jeff Bilyk # Maintainer: Natanael Copa pkgname=memcached pkgver=1.5.16 pkgrel=0 pkgdesc="Distributed memory object caching system" url="http://memcached.org/" arch="all" license="BSD-3-Clause" depends_dev="${pkgname}=${pkgver}-r${pkgrel}" makedepends="$depends_dev cyrus-sasl-dev libevent-dev libseccomp-dev linux-headers" install="$pkgname.pre-install" subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc" source="https://www.memcached.org/files/${pkgname}-${pkgver}.tar.gz $pkgname.confd $pkgname.initd" build() { # extstore is broken on s390x # https://github.com/memcached/memcached/issues/381 local _extstore='--enable-extstore' case "$CARCH" in s390x) _extstore='';; esac cd "$builddir" ./configure \ --build="$CBUILD" \ --host="$CHOST" \ --prefix=/usr \ --enable-sasl \ --enable-sasl-pwdb \ --enable-seccomp \ $_extstore make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -m755 -D "$srcdir/$pkgname.initd" \ "$pkgdir/etc/init.d/$pkgname" install -m644 -D "$srcdir/$pkgname.confd" \ "$pkgdir/etc/conf.d/$pkgname" } sha512sums="999872c4c68e0210feab76f74c9487fbfb652cf3e6b7fa347f882767aad41ea6d8ba3ee056494409c054d673fc209032d8a890605810b2c6c9048d26d50751a0 memcached-1.5.16.tar.gz 31bd788433b8021ed332f86d291e7f03222ae234520e52ba673b581d5da2adf5656e8f73e8b985df73258dea9b2a1b8ef36195163fe47a92fda59825deedfed4 memcached.confd 11566ce544c3feedbbcca7f87cf21c9d7f7e47c8a0ebdbc0e833ac18a858211c5b00d4128457f957401f6f20453f0cbe902570488133a503c79ee01c102a7c18 memcached.initd"