diff options
author | Alex Forencich | 2016-10-15 22:32:24 -0700 |
---|---|---|
committer | Alex Forencich | 2016-10-15 22:32:24 -0700 |
commit | 34662ba35109af40d1c0c72280d41f69563d41fa (patch) | |
tree | 487e5f01a2145f50af3d4ba44b8ef541fc04bff2 | |
parent | 920e992bd1a9f37adca47134eecb613256f99c19 (diff) | |
download | aur-34662ba35109af40d1c0c72280d41f69563d41fa.tar.gz |
Convert to split package
-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 +} + |