diff options
Diffstat (limited to 'extra/memcached/PKGBUILD')
-rw-r--r-- | extra/memcached/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/extra/memcached/PKGBUILD b/extra/memcached/PKGBUILD new file mode 100644 index 000000000..8402e28f1 --- /dev/null +++ b/extra/memcached/PKGBUILD @@ -0,0 +1,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') |