From 9e3985ed7c9851da65023a0ab3d0739cce1858e2 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 18 Oct 2012 01:24:49 -0700 Subject: Thu Oct 18 01:23:58 PDT 2012 --- extra/python-iwscan/PKGBUILD | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'extra/python-iwscan') diff --git a/extra/python-iwscan/PKGBUILD b/extra/python-iwscan/PKGBUILD index f1038ce59..752d224cb 100644 --- a/extra/python-iwscan/PKGBUILD +++ b/extra/python-iwscan/PKGBUILD @@ -1,18 +1,26 @@ +# $Id: PKGBUILD 169016 2012-10-17 10:20:21Z allan $ # Maintainer: Daniel Isenmann -pkgname=python-iwscan +pkgbase=python-iwscan +pkgname=python2-iwscan pkgver=20090609 -pkgrel=3 +pkgrel=4 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') -source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-20090609.tar.gz) +conflicts=('python-iwscan<=20090609-3') +replaces=('python-iwscan<=20090609-3') +source=(ftp://ftp.archlinux.org/other/${pkgbase}/${pkgbase}-20090609.tar.gz) md5sums=('30fbe8ad3b07e67c1c35db2de16077d8') build() { - cd ${srcdir}/${pkgname} + cd "${srcdir}/${pkgbase}" python2 setup.py build - python2 setup.py install --root=${pkgdir} +} + +package_python2-iwscan() { + cd "${srcdir}/${pkgbase}" + python2 setup.py install --root="${pkgdir}" } -- cgit v1.2.3-54-g00ecf