2015-09-17 14:07:43 +02:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
2016-03-25 21:43:59 +01:00
|
|
|
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
|
|
# you also find the URL of a binary repository.
|
|
|
|
|
2015-09-17 14:07:43 +02:00
|
|
|
pkgname=python-pyusb
|
|
|
|
pkgver=1.0.0b2
|
2015-10-04 17:56:26 +02:00
|
|
|
pkgrel=3
|
2015-09-17 14:07:43 +02:00
|
|
|
pkgdesc="A pure Python module which provides USB access."
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/walac/pyusb"
|
|
|
|
license=('custom')
|
|
|
|
depends=('python' 'libusb-compat')
|
|
|
|
makedepends=('python-distribute')
|
|
|
|
provides=($pkgname)
|
|
|
|
conflicts=($pkgname-git)
|
|
|
|
source=("https://github.com/walac/pyusb/archive/${pkgver}.tar.gz")
|
|
|
|
md5sums=('bc12e83ff3ef1045d4306d13a9955fc1')
|
|
|
|
|
|
|
|
build() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd $srcdir/pyusb-$pkgver
|
|
|
|
python setup.py build
|
2015-09-17 14:07:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd $srcdir/pyusb-$pkgver
|
|
|
|
python setup.py install -f --root="$pkgdir"
|
|
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
2015-09-17 14:07:43 +02:00
|
|
|
}
|