desktop/memcached/PKGBUILD

34 lines
886 B
Bash
Raw Normal View History

2011-12-18 11:43:59 +08:00
pkgname=memcached
2016-11-04 08:22:42 +08:00
pkgver=1.4.33
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"
2015-06-26 23:00:50 +08:00
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"
2015-06-26 23:00:50 +08:00
"memcached.service")
2016-11-04 08:22:42 +08:00
sha256sums=('83726c8d68258c56712373072abb25a449c257398075a39ec0867fd8ba69771d'
'd0511361cec56c47bfb86590af8aa51a63ff6794513914170d5226f4e46e4386')
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
}