summaryrefslogtreecommitdiff
path: root/community/lorcon/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/lorcon/PKGBUILD')
-rw-r--r--community/lorcon/PKGBUILD51
1 files changed, 27 insertions, 24 deletions
diff --git a/community/lorcon/PKGBUILD b/community/lorcon/PKGBUILD
index 54f483b48..fdff25510 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' 'mips64el')
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: