desktop/memcached/PKGBUILD

38 lines
1005 B
Bash
Raw Normal View History

# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
2012-10-24 18:56:18 +08:00
# Contributors from Arch: Dan McGee <dan@archlinux.org>
# Michael Irwin <6d6469@gmail.com>
2011-12-18 11:43:59 +08:00
pkgname=memcached
pkgver=1.4.17
2011-12-18 11:43:59 +08:00
pkgrel=1
2012-01-28 22:35:32 +08:00
pkgdesc="A distributed memory object caching system"
arch=(x86_64)
2012-01-28 22:35:32 +08:00
url="http://memcached.org/"
2011-12-18 11:43:59 +08:00
license=('GPL')
2012-01-28 22:35:32 +08:00
depends=('libevent')
optdepends=('perl: for memcached-tool usage')
install=memcached.install
2013-12-14 00:39:36 +08:00
source=("http://www.memcached.org/files/$pkgname-$pkgver.tar.gz"
2012-10-24 18:56:18 +08:00
memcached.service)
sha1sums=('2b4fc706d39579cf355e3358cfd27b44d40bd79c'
'fccdb030495733440c38bc4b8ab629c8609f17eb')
2011-12-18 11:43:59 +08:00
build() {
2012-01-28 22:35:32 +08:00
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
2011-12-18 11:43:59 +08:00
make
}
check() {
cd "$srcdir/$pkgname-$pkgver"
make test
}
2011-12-18 11:43:59 +08:00
package() {
2012-01-28 22:35:32 +08:00
cd "$srcdir/$pkgname-$pkgver"
2011-12-18 11:43:59 +08:00
make DESTDIR="$pkgdir" install
2012-01-28 22:35:32 +08:00
install -D -m 755 scripts/memcached-tool "$pkgdir"/usr/bin/memcached-tool
2012-10-24 18:56:18 +08:00
install -D -m 644 ../memcached.service "$pkgdir"/usr/lib/systemd/system/memcached.service
2011-12-18 11:43:59 +08:00
}