summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9f3a8ae7ed05189952eed3f180feec46f831f6d (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
# Maintainer: Marco44 <cousinmarc at gmail dot com>
pkgname=driftnet-git
_gitname=driftnet
pkgver=v1.1.3.r19.g7602b53
pkgrel=1
pkgdesc="get files out of a tcp stream"
arch=('i686' 'x86_64')
url=https://github.com/deiv/driftnet
license=('GPL3')
depends=('libpcap' 'libjpeg' 'libpng12' 'giflib')
builddepends=('autoconf')
makedepends=(git)
options=(!emptydirs !libtool)
source=('git://github.com/deiv/driftnet.git')
md5sums=('SKIP')

pkgver() {
  cd $_gitname
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  local _gitdir=$srcdir/$_gitname
  cd $_gitdir
  git clean -dfx
  git reset --hard
  autoreconf -fi
  ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/$_gitname
  make DESTDIR=$pkgdir install
}