# $Id: PKGBUILD 185263 2013-05-12 16:29:01Z dan $ # Maintainer: Dan McGee # Contributor: Michael Irwin <6d6469@gmail.com> pkgname=memcached pkgver=1.4.15 pkgrel=2 pkgdesc="A distributed memory object caching system" arch=(i686 x86_64 'mips64el') url="http://memcached.org/" license=('GPL') depends=('libevent') optdepends=('perl: for memcached-tool usage') install=memcached.install source=(http://memcached.googlecode.com/files/$pkgname-$pkgver.tar.gz memcached.service) sha256sums=('169721ab7a7531add6ae9f6b14b6b5641725fe0b1f0bdf5c3a4327725901e2b4' '453cad82bddb25fac43fd5cedc5702b9b6c6abaf7498e21445facf20f25f53a6') build() { cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr make } 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 }