SHARE
TWEET

bitstring

a guest Mar 5th, 2014 12 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: nblock <nblock [/at\] archlinux DOT us>
  2. # Contributor: Thomas Conneely <tc116 at le dot ac dot uk>
  3.  
  4. pkgname=python-bitstring
  5. pkgver=3.1.3
  6. pkgrel=1
  7. pkgdesc='Python module designed to help make the creation, manipulation and analysis of binary data as simple and natural as possible'
  8. arch=('any')
  9. url="http://code.google.com/p/python-bitstring/"
  10. license=('MIT')
  11. depends=('python')
  12. makedepends=('unzip')
  13. options=(!emptydirs)
  14. source=(https://pypi.python.org/packages/source/b/bitstring/bitstring-$pkgver.zip)
  15. md5sums=('1db5d54ee269f6b54d50c3eb257eea4b')
  16.  
  17. build() {
  18.   cd ${srcdir}/bitstring-${pkgver}
  19.  
  20.   #get the license file
  21.   python -c "import bitstring; print(bitstring.__licence__)" >> ${srcdir}/LICENSE
  22. }
  23.  
  24. package() {
  25.   cd ${srcdir}/bitstring-${pkgver}
  26.  
  27.   # build
  28.   python setup.py install --root=${pkgdir}/ --optimize=1
  29.  
  30.   #install license
  31.   install -D -m644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
  32. }
  33.  
  34. # vim:set ts=2 sw=2 et:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top