From 65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Fri, 27 Dec 2013 23:55:53 +0000 Subject: Fri Dec 27 23:54:04 UTC 2013 --- community/lorcon/PKGBUILD | 51 +++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 24 deletions(-) (limited to 'community/lorcon') diff --git a/community/lorcon/PKGBUILD b/community/lorcon/PKGBUILD index b1db5a746..30bac1745 100644 --- a/community/lorcon/PKGBUILD +++ b/community/lorcon/PKGBUILD @@ -1,42 +1,45 @@ -# $Id: PKGBUILD 99899 2013-10-31 02:21:39Z allan $ +# $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=224 -pkgrel=2 -pkgdesc="Loss Of Radio CONnectivity: A generic library for injecting 802.11 frames" +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=('subversion') -replaces=('lorcon-old-svn') -_svntrunk="http://802.11ninja.net/svn/lorcon/trunk" -_svnrev=$pkgver +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" -build() { - cd "$srcdir" - - if [ -d "$_svnmod/.svn" ]; then - (cd "$_svnmod" && svn up -r "$_svnrev") - else - svn co "$_svntrunk/$_svnmod" --config-dir ./ -r \ - "$_svnrev" "$_svnmod" - fi - msg "SVN checkout done or server timeout" - cd "$_svnmod" - ./configure --prefix=/usr --mandir=/usr/share/man - make } -package() { - cd "$_svnmod" +build() { + make -C "$pkgname" +} - make DESTDIR="$pkgdir" install +package() { + make -C "$pkgname" DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf