desktop/libmemcached/PKGBUILD

41 lines
1.3 KiB
Bash
Raw Normal View History

2012-01-28 22:37:04 +08:00
pkgname=libmemcached
2015-05-04 02:38:13 +08:00
pkgver=1.0.18
pkgrel=4
2012-01-28 22:37:04 +08:00
pkgdesc="C and C++ client library to the memcached server"
arch=('x86_64')
2012-01-28 22:37:04 +08:00
url="http://libmemcached.org/"
license=('GPL')
2012-10-24 18:56:18 +08:00
depends=('glibc' 'libsasl' 'libevent')
makedepends=('perl' 'memcached' 'python3-sphinx')
source=(http://launchpad.net/$pkgname/1.0/$pkgver/+download/$pkgname-$pkgver.tar.gz
libmemcached-fix-linking-with-libpthread.patch
libmemcached-build.patch)
sha512sums=('2d95fea63b8b6dc7ded42c3a88a54aad74d5a1d417af1247144dae4a88c3b639a3aabc0c2b66661ff69a7609a314efaaae236e10971af9c428a4bca0a0101585'
'dd021ab05e51d7b115ddb876ed0ffe01f954ad60146d91048dc20ea3b96f92cb34f60699ccd82768ce4bf87680035f24676d18fb103d3416049cb80a56098fbc'
'b3e8e0e5a4fcfcf583001f1923bffb36cb8de90a77f710c2ba3929d6f6364cce5d4ee9edc3f0187055faa035b7233c35797c7cf8dce840cd6a952e0044c39223')
prepare() {
cd $pkgname-$pkgver
# Fix linking against libpthread (patch from Fedora)
# https://bugzilla.redhat.com/show_bug.cgi?id=1037707
# https://bugs.launchpad.net/libmemcached/+bug/1281907
patch -Np1 -i ../libmemcached-fix-linking-with-libpthread.patch
# https://bugs.launchpad.net/libmemcached/+bug/1663985
patch -Np1 -i ../libmemcached-build.patch
}
2012-01-28 22:37:04 +08:00
build() {
cd $pkgname-$pkgver
2012-01-28 22:37:04 +08:00
./configure --prefix=/usr
2012-01-28 22:37:04 +08:00
make
}
package() {
cd $pkgname-$pkgver
2012-01-28 22:37:04 +08:00
make DESTDIR=$pkgdir install
2012-01-28 22:37:04 +08:00
}