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

PKGBUILD pyusb10

By: a guest on May 27th, 2013  |  syntax: Bash  |  size: 0.83 KB  |  views: 165  |  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: Tim Hatch <tim@timhatch.com>
  2. # Contributor: Jason Giangrande <jgiangrande@clarku.edu>
  3.  
  4. pkgname=pyusb10
  5. _name=pyusb
  6. pkgver=1.0.0_a3
  7. _realver=${pkgver/_/}
  8. _dirver=${pkgver/_a/-alpha-}
  9. pkgrel=1
  10. pkgdesc="A native Python module written in C which provides USB access."
  11. arch=('i686' 'x86_64')
  12. url="http://pyusb.berlios.de/"
  13. license=('GPL')
  14. depends=('python2' 'libusb')
  15. conflicts=('pyusb')
  16. source=("http://downloads.sourceforge.net/project/${_name}/PyUSB%201.0/${_dirver}/${_name}-${_realver}.tar.gz")
  17. md5sums=('e83e12621149a0d76410aa5cec35ad22')
  18. optdepends=('libusb-beta: libusb 1.0 api')
  19.  
  20. build() {
  21.         cd $srcdir/$_name-$_realver
  22.         python2 setup.py build
  23. }
  24.  
  25. package() {
  26.         cd $srcdir/$_name-$_realver
  27.         python2 setup.py install -f --root="$pkgdir"
  28.         install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  29. }