summaryrefslogtreecommitdiff
path: root/extra/memcached/PKGBUILD
blob: 8402e28f18d60a655198eb85eed9bc3881989dbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $Id: PKGBUILD 109292 2011-02-07 17:22:01Z ibiru $
# Maintainer: Dan McGee <dan@archlinux.org>
# Contributor: Michael Irwin <6d6469@gmail.com>

pkgname=memcached
pkgver=1.4.5
pkgrel=3
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://memcached.googlecode.com/files/$pkgname-$pkgver.tar.gz
        memcached.conf
        memcached.sh
        fix-type-punning-issues.patch)
changelog=ChangeLog

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -Np1 < $srcdir/fix-type-punning-issues.patch
  ./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 $srcdir/$pkgname.conf $pkgdir/etc/conf.d/$pkgname
  install -D -m 755 $srcdir/$pkgname.sh $pkgdir/etc/rc.d/$pkgname
}

md5sums=('583441a25f937360624024f2881e5ea8'
         'bf15619930dadf0c08669566e4aa809c'
         '65f88b69cf3112b178725af121327765'
         'c4f6da682cb4e7599fede4904021f4ae')