Guest User

PKGBUILD python2-olefile

a guest
Apr 14th, 2021
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
  2.  
  3. pkgname=python2-olefile
  4. _pyname=olefile
  5. pkgver=0.46
  6. pkgrel=4
  7. pkgdesc='Python library to parse, read and write Microsoft OLE2 files (formerly OleFileIO_PL)'
  8. url='https://www.decalage.info/olefile'
  9. arch=('any')
  10. license=('BSD')
  11. depends=('python2')
  12. checkdepends=('python2-pytest')
  13. replaces=('python2-olefileio')
  14. conflicts=('python2-olefileio')
  15. source=(${_pyname}-${pkgver}.tar.gz::https://github.com/decalage2/olefile/archive/v${pkgver}.tar.gz)
  16. sha512sums=('e70975cdda11004ab331908085e0cbd9cf3e44f49fa1453a7af5373bfed0a98729bb7600fee7a1042be6c40c58649f3650972d9e4520bbab218cf715f6264f98')
  17.  
  18. build() {
  19. (cd ${_pyname}-${pkgver}
  20. python2 setup.py build
  21. )
  22. }
  23.  
  24. check() {
  25. (cd ${_pyname}-${pkgver}
  26. py.test2
  27. )
  28. }
  29.  
  30. package() {
  31. cd ${_pyname}-${pkgver}
  32. python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr --skip-build
  33. install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
  34. install -Dm 644 README.md doc/*.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
  35. }
  36.  
  37. # vim: ts=2 sw=2 et:
RAW Paste Data