summaryrefslogtreecommitdiff
path: root/community/lorcon-old-svn/PKGBUILD
blob: 4a14578a3c4e538ce7a5107c94d02b49c120140f (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
36
37
38
39
40
41
42
43
# Maintainer: Brad Fanella <bradfanella@archlinux.us>
# Contributor: fnord0 [fnord0 <AT> riseup <DOT> net]

pkgname=lorcon-old-svn
pkgver=197
pkgrel=2
makedepends=('subversion')
pkgdesc="Loss Of Radio CONnectivity: A generic library for injecting 802.11 frames, capable of injection via multiple driver frameworks, without forcing modification of the application code."
url="http://802.11ninja.net"
license="GPL"
arch=('i686' 'x86_64' 'mips64el')

_svntrunk=http://802.11ninja.net/svn/lorcon/branch/lorcon-old/
_svnmod=lorcon-old

build() {
	cd ${srcdir}

	# Fetch latest svn build
	if [ -d ${_svnmod}/.svn ]; then
		msg "Updating lorcon-old SVN..."
		cd ${_svnmod} && svn up
	else
		msg "Checking out lorcon-old SVN..."
		svn co ${_svntrunk} -r 224 ${_svnmod}
	fi

        msg "SVN checkout done or server timeout"

	# Compile
	cd ${srcdir}/${_svnmod}
	msg "Starting make..."
	./configure --prefix=/usr
	make 
}

package() {
	cd ${srcdir}/${_svnmod}
	
	# Install
	make DESTDIR="${pkgdir}" install
}