summaryrefslogtreecommitdiff
path: root/extra/python-iwscan
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-07 03:24:01 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-07 03:24:01 +0000
commitb4f09e0a566f01cd9a250e2f44423169c70adc94 (patch)
treed407e83c47735fe0d24a6be03937a1d84f41c1cf /extra/python-iwscan
parentae5e27e4900c0c38025462f59e0524aef7aa630b (diff)
Fri Feb 7 03:21:50 UTC 2014
Diffstat (limited to 'extra/python-iwscan')
-rw-r--r--extra/python-iwscan/PKGBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/extra/python-iwscan/PKGBUILD b/extra/python-iwscan/PKGBUILD
index 752d224cb..2636d914b 100644
--- a/extra/python-iwscan/PKGBUILD
+++ b/extra/python-iwscan/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 169016 2012-10-17 10:20:21Z allan $
+# $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=4
+pkgrel=5
pkgdesc="A Python interface to iwlist, using the iwlib library"
arch=('i686' 'x86_64')
url="http://projects.otaku42.de/browser/python-iwscan"
@@ -15,12 +15,17 @@ 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 "${srcdir}/${pkgbase}"
+ cd ${pkgbase}
python2 setup.py build
}
package_python2-iwscan() {
- cd "${srcdir}/${pkgbase}"
+ cd ${pkgbase}
python2 setup.py install --root="${pkgdir}"
}