diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
commit | 65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch) | |
tree | fbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/lorcon | |
parent | d53c44f055929b18d7d1b25f8367ee5836c435fc (diff) |
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/lorcon')
-rw-r--r-- | community/lorcon/PKGBUILD | 51 |
1 files changed, 27 insertions, 24 deletions
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 <rodseth@gmail.com> # Contributor: Brad Fanella <bradfanella@archlinux.us> # Contributor: fnord0 [fnord0 <AT> riseup <DOT> net] # Contributor: dninja <dninja@gmail.com> +# Contributor: Jon Gjengset <jon@thesquareplanet.com> 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: |