SHARE
TWEET

Untitled

mr_felixoid Dec 28th, 2017 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Vladimir Keleshev <vladimir [at] keleshev [dot] com>
  2. # Maintainer: ???
  3.  
  4. _name=schema
  5. pkgbase="python-${_name}"
  6. pkgname=("python2-${_name}" "python-${_name}")
  7. pkgver=0.6.6
  8. pkgrel=1
  9. pkgdesc='Python module to validate and convert data structures.'
  10. arch=('any')
  11. url="https://github.com/keleshev/${_name}"
  12. license=('MIT')
  13. makedepends=('python-setuptools' 'python-pytest' 'python2-setuptools' 'python2-pytest')
  14. source=("https://github.com/keleshev/${_name}/archive/v${pkgver}.tar.gz")
  15. sha1sums=('fad10e26ba7bb28ec0d0e57f4410882dc357ab63')
  16.  
  17. check() {
  18.   cd ${_name}-${pkgver}
  19.   python2 setup.py test
  20.   python setup.py test
  21. }
  22.  
  23. package_python2-schema() {
  24.   depends=('python2')
  25.   cd "${srcdir}/${_name}-${pkgver}"
  26.   python2 setup.py install --root="${pkgdir}" --optimize=1
  27.   install -Dm644 LICENSE-MIT ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT
  28. }
  29.  
  30. package_python-schema() {
  31.   depends=('python')
  32.   cd "${srcdir}/${_name}-${pkgver}"
  33.   python setup.py install --root="${pkgdir}" --optimize=1
  34.   install -Dm644 LICENSE-MIT ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT
  35. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top