summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 648b1c1c43afad4e19a7cee1b1f8e3ce51e51785 (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
# Maintainer: willemw <willemw12@gmail.com>

pkgname=iwscanner
pkgver=0.2.4
pkgrel=3
pkgdesc="Wireless scanner with an easy to use graphic interface and using the iwlist tool"
arch=('any')
url="http://kuthulu.com/iwscanner"
license=('LGPL')
depends=('pygtk' 'python2' 'wireless_tools')
optdepends=('gksu: privilege escalation to use wireless tools'
            'kdesu: privilege escalation to use wireless tools'
            'gksudo: privilege escalation to use wireless tools')
options=(!emptydirs)
# Additional source files are based on the opensuse 'iwscanner' rpm
source=(http://kuthulu.com/iwscanner/iwscanner-$pkgver.tgz
        iwscanner
        iwscanner.desktop
        setup.py)
md5sums=('f26ce8196f992ad3e60b1af758be1546'
         '7dcbc65395faba817a3653db7d07224a'
         'd0613547024a89444c34ef2b34d8427c'
         'dc0f19ef1682331df54eaec0ad8d6dc0')

prepare() {
  cd $pkgname-$pkgver
  sed -i 's|#!/usr/bin/env python[ ]*$|#!/usr/bin/env python2|' iwscanner.py
}

package() {
  install -Dm644 iwscanner.desktop "$pkgdir/usr/share/applications/iwscanner.desktop"

  cd $pkgname-$pkgver
  python2 ../../setup.py install --root="$pkgdir/" --optimize=1
}