summaryrefslogtreecommitdiff
path: root/community/wifi-radar/PKGBUILD
blob: 11ff48cc25db2890beb0aaced1a7ed1b703049a1 (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
# $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
}