updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / squidpurge / PKGBUILD
blob2073ee1b443c8379c767a9570e0bfe1b4b114e92
1 # Maintainer: Devin J. Pohly <djpohly+arch@gmail.com>
2 pkgname=squidpurge
3 pkgver=20040201
4 pkgrel=1
5 pkgdesc="Tool for selectively removing or dumping Squid-2 cache contents"
6 arch=(i686 x86_64)
7 url="http://www.wa.apana.org.au/~dean/squidpurge/"
8 license=('MIT')
9 depends=(gcc-libs)
10 source=("http://www.wa.apana.org.au/~dean/sources/purge-$pkgver-src.tar.gz")
11 md5sums=('60385256da26311036ebcc4802b0dac5')
13 build() {
14   cd "$srcdir/purge"
15   make OPT_NORM='-DDEFAULT_SQUID_CONF=\"/etc/squid/squid.conf\" -Wall -fpermissive' SOCKLEN=socklen_t
18 package() {
19   cd "$srcdir/purge"
20   install -D purge "$pkgdir/usr/bin/squidpurge"
22   install -d "$pkgdir/usr/share/licenses/$pkgname"
23   sed -n '/Author/,/SOFTWARE\./s,^// \?,,p' purge.cc > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
26 # vim:set ts=2 sw=2 et: