summaryrefslogtreecommitdiff
path: root/extra/python-iwscan/PKGBUILD
blob: 2636d914b1dec9c7a14abaa35f3e6fefe69ce2e0 (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
# $Id: PKGBUILD 205495 2014-02-06 05:24:02Z bisson $
# Maintainer: Daniel Isenmann <daniel@archlinux.org>

pkgbase=python-iwscan
pkgname=python2-iwscan
pkgver=20090609
pkgrel=5
pkgdesc="A Python interface to iwlist, using the iwlib library"
arch=('i686' 'x86_64')
url="http://projects.otaku42.de/browser/python-iwscan"
license=('LGPL')
depends=('python2' 'wireless_tools')
conflicts=('python-iwscan<=20090609-3')
replaces=('python-iwscan<=20090609-3')
source=(ftp://ftp.archlinux.org/other/${pkgbase}/${pkgbase}-20090609.tar.gz)
md5sums=('30fbe8ad3b07e67c1c35db2de16077d8')

prepare() {
	cd ${pkgbase}
	sed -i 's|PROC_NET_WIRELESS|"/proc/net/wireless"|' pyiwscan.c
}

build() {
	cd ${pkgbase}
	python2 setup.py build
}

package_python2-iwscan() {
	cd ${pkgbase}
	python2 setup.py install --root="${pkgdir}"
}