updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / driftnet-debian / PKGBUILD
blob6ccf4aa29c90aebde340a5c35da3d1733b9811c8
1 # $Id: PKGBUILD 55456 2011-09-13 00:28:38Z ebelanger $
2 # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
4 pkgname=driftnet-debian
5 pkgver=0.1.6
6 _pkgdebpatchver=9
7 pkgrel=1
8 pkgdesc="Listens to network traffic and picks out images from TCP streams it observes. (with Debian patches)"
9 arch=('i686' 'x86_64')
10 url=('http://www.ex-parrot.com/~chris/driftnet/')
11 license=('GPL')
12 provides=('driftnet')
13 conflicts=('driftnet')
14 depends=('libpcap' 'gtk2' 'giflib')
15 makedepends=('imake')
16 source=("http://www.ex-parrot.com/~chris/driftnet/driftnet-${pkgver}.tar.gz"
17         "http://ftp.de.debian.org/debian/pool/main/d/driftnet/driftnet_${pkgver}-${_pkgdebpatchver}.diff.gz")
18 md5sums=('8e11d77770452f97bb3c23f510489815'
19          '912c7ff5c0af1ebf4482749aa53533e6')
21 build() {
22   cd "${srcdir}/driftnet-${pkgver}"
23   patch -p1 -i "${srcdir}/driftnet_${pkgver}-${_pkgdebpatchver}.diff"
24   sed -i -e 's/$(OBJS) $(LDFLAGS)/$(LDFLAGS) $(OBJS)/' Makefile
25   make
28 package() {
29   cd "${srcdir}/driftnet-${pkgver}"
30   install -D -m755 driftnet "${pkgdir}/usr/bin/driftnet"
31   install -D -m644 driftnet.1 "${pkgdir}/usr/share/man/man1/driftnet.1"