summaryrefslogtreecommitdiff
path: root/community/wifi-radar/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/wifi-radar/PKGBUILD')
-rw-r--r--community/wifi-radar/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/wifi-radar/PKGBUILD b/community/wifi-radar/PKGBUILD
new file mode 100644
index 000000000..11ff48cc2
--- /dev/null
+++ b/community/wifi-radar/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 31375 2010-10-31 12:54:04Z lfleischer $
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: dtw <dibble.at.thewrecker.dot.net>
+# Contributor: shawnifoley http://bbs.archlinux.org/viewtopic.php?t=11492
+# Contributor: sebastien le guillerm <geekitus@tele2.fr>
+
+pkgname=wifi-radar
+pkgver=2.0.s08
+pkgrel=2
+pkgdesc="A PyGTK2 utility for managing WiFi profiles"
+arch=('i686' 'x86_64')
+url="http://wifi-radar.berlios.de/"
+license=('GPL')
+depends=('pygtk' 'wireless_tools' 'sudo')
+backup=('etc/wifi-radar.conf')
+install=$pkgname.install
+source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.bz2)
+md5sums=('cbad24805d5dc6696e38dc1df619c819')
+
+build() {
+ cd ${srcdir}/$pkgname-$pkgver
+
+ # python2 fix
+ sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' wifi-radar
+
+# Fix iwlist and iwconfig path
+ sed -i 's|/sbin/iwlist|/usr/sbin/iwlist|' $pkgname
+ sed -i 's|/sbin/iwconfig|/usr/sbin/iwconfig|' $pkgname
+
+ make || return 1
+ make DESTDIR=${pkgdir}/usr sysconfdir=${pkgdir}/etc install
+}