# $Id: PKGBUILD 145793 2012-01-01 02:41:17Z dreisner $ # Maintainer: Dave Reisner # Contributor: Jaroslav Lichtblau # Contributor: Douglas Soares de Andrade # Contributor: Roberto Alsina pkgname=varnish pkgver=3.0.2 pkgrel=4 pkgdesc="High-performance HTTP accelerator" arch=(mips64el) url="http://www.varnish-cache.org/" license=('BSD') depends=('gcc' 'libedit' 'pcre') backup=('etc/conf.d/varnish' 'etc/varnish/default.vcl') install=$pkgname.install options=('!libtool') source=("http://repo.varnish-cache.org/source/$pkgname-$pkgver.tar.gz" "$pkgname.conf.d" "rc.$pkgname") md5sums=('c8eae0aabbe66b6daabdf3a1f58cd47a' 'edd1237d097d72173d9772754335890c' '8366f51568c0bbb3d3891aa0cc724369') build() { cd "$srcdir/$pkgname-$pkgver" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/lib make } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install install -D -m755 "$srcdir/rc.$pkgname" "$pkgdir/etc/rc.d/$pkgname" install -D -m644 "$srcdir/$pkgname.conf.d" "$pkgdir/etc/conf.d/$pkgname" install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }