desktop/memcached/PKGBUILD
2013-12-13 16:39:36 +00:00

35 lines
1.0 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# Contributors from Arch: Dan McGee <dan@archlinux.org>
# Michael Irwin <6d6469@gmail.com>
pkgname=memcached
pkgver=1.4.16
pkgrel=1
pkgdesc="A distributed memory object caching system"
arch=(i686 x86_64)
url="http://memcached.org/"
license=('GPL')
depends=('libevent')
optdepends=('perl: for memcached-tool usage')
backup=('etc/conf.d/memcached')
source=("http://www.memcached.org/files/$pkgname-$pkgver.tar.gz"
memcached.service)
sha1sums=('fdf071b5fd9972bf74f91d43f0b4cba980b83acb'
'5bc721d21991c2ec50ef01231527a280374d6477')
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
}