diff options
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 27 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = python-pyusb-git pkgdesc = Easy USB access from Python - pkgver = 1.0.0b2.r52.g39816be + pkgver = 1.0.0.r15.g2b09e55 pkgrel = 1 url = http://sourceforge.net/apps/trac/pyusb/ arch = any @@ -13,4 +13,14 @@ pkgbase = python-pyusb-git md5sums = SKIP pkgname = python-pyusb-git + depends = python + depends = libusb + provides = python-pyusb + conflicts = python-pyusb + +pkgname = python2-pyusb-git + depends = python2 + depends = libusb + provides = python2-pyusb + conflicts = python2-pyusb @@ -1,6 +1,6 @@ # Maintainer: Alex Forencich <alex@alexforencich.com> -pkgname=python-pyusb-git -pkgver=1.0.0b2.r52.g39816be +pkgname=(python-pyusb-git python2-pyusb-git) +pkgver=1.0.0.r15.g2b09e55 pkgrel=1 pkgdesc="Easy USB access from Python" arch=('any') @@ -25,8 +25,21 @@ build() { cd "$srcdir/$_gitname" } -package() { +package_python-pyusb-git() { + depends=('python' 'libusb') + provides=('python-pyusb') + conflicts=('python-pyusb') + cd "$srcdir/$_gitname" python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 } +package_python2-pyusb-git() { + depends=('python2' 'libusb') + provides=('python2-pyusb') + conflicts=('python2-pyusb') + + cd "$srcdir/$_gitname" + python2 setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 +} + |