# $Id: PKGBUILD 101007 2013-11-14 20:43:40Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Brad Fanella # Contributor: fnord0 [fnord0 riseup net] # Contributor: dninja # Contributor: Jon Gjengset pkgname=lorcon pkgver=2.0.0.20091101 pkgrel=1 epoch=1 pkgdesc='Generic library for injecting 802.11 frames' url='http://802.11ninja.net/' license=('GPL') arch=('x86_64' 'i686') depends=('libpcap') makedepends=('git') source=('git+https://code.google.com/p/lorcon/') md5sums=('SKIP') pkgver() { cd "$pkgname" major=$(cat Makefile.in | grep -E "^MAJOR " | sed 's/^.*= *//') minor=$(cat Makefile.in | grep -E "^MINOR " | sed 's/^.*= *//') tiny=$(cat Makefile.in | grep -E "^TINY " | sed 's/^.*= *//') version=$(cat Makefile.in | grep -E "^VERSION " | sed 's/^.*= *//') echo "$major.$minor.$tiny.$version" } prepare() { cd "$pkgname" ./configure --prefix=/usr --mandir=/usr/share/man } build() { make -C "$pkgname" } package() { make -C "$pkgname" DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 et: