Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

python2-pyusb

By: jpkotta on Dec 17th, 2013  |  syntax: Bash  |  size: 0.71 KB  |  views: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Jonathan Kotta <jpkotta AT gmail DOT com>
  2.  
  3. pkgname=python2-pyusb
  4. pkgver=1.0.0b1
  5. pkgrel=1
  6. pkgdesc="A native Python module written in C which provides USB access."
  7. arch=('any')
  8. url="https://github.com/walac/pyusb"
  9. license=('custom')
  10. depends=('python2' 'libusb-compat')
  11. makedepends=('python2-distribute')
  12. conflicts=(pyusb=$pkgver)
  13. provides=(pyusb $pkgname)
  14. source=("https://github.com/walac/pyusb/archive/${pkgver}.tar.gz")
  15. md5sums=('fe439e0a84749f06eddd65927b7496ad')
  16.  
  17. build() {
  18.         cd $srcdir/pyusb-$pkgver
  19.         python2 setup.py build
  20. }
  21.  
  22. package() {
  23.         cd $srcdir/pyusb-$pkgver
  24.         python2 setup.py install -f --root="$pkgdir"
  25.         install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  26. }