pkgname=memcached pkgver=1.4.25 pkgrel=1 pkgdesc="A distributed memory object caching system" arch=('x86_64') url="http://memcached.org/" license=('GPL') depends=('libevent') optdepends=('perl: for memcached-tool usage') install=memcached.install source=("http://www.memcached.org/files/$pkgname-$pkgver.tar.gz" "memcached.service") sha256sums=('f058437b3c224d321919a9a6bb4e3eedb2312ed718c0caf087ff2f04ab795dda' 'd0511361cec56c47bfb86590af8aa51a63ff6794513914170d5226f4e46e4386') build() { cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr make } check() { cd "$srcdir/$pkgname-$pkgver" make test } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install install -D -m 755 scripts/memcached-tool "$pkgdir"/usr/bin/memcached-tool install -D -m 644 ../memcached.service "$pkgdir"/usr/lib/systemd/system/memcached.service }