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
|
2016-08-03 00:25:08 +02:00
|
|
|
pkgver=1.0.0
|
|
|
|
pkgrel=1
|
2016-08-09 01:55:11 +02:00
|
|
|
pkgdesc='A pure Python module which provides USB access'
|
2015-09-17 14:07:43 +02:00
|
|
|
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")
|
2016-08-03 00:25:08 +02:00
|
|
|
sha256sums=('52106ce23ccc3b804335952aa48f7d5ce94f7ec27b44bb2d523eac92b97ace63')
|
2015-09-17 14:07:43 +02:00
|
|
|
|
|
|
|
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
|
|
|
}
|