desktop/memcached/PKGBUILD

38 lines
1005 B
Bash

# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
# Contributors from Arch: Dan McGee <dan@archlinux.org>
# Michael Irwin <6d6469@gmail.com>
pkgname=memcached
pkgver=1.4.17
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)
sha1sums=('2b4fc706d39579cf355e3358cfd27b44d40bd79c'
'fccdb030495733440c38bc4b8ab629c8609f17eb')
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
}