daily pastebin goal
84%
SHARE
TWEET

Untitled

mr_felixoid Dec 28th, 2017 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- PKGBUILD    2017-12-28 14:11:37.277015414 +0100
  2. +++ PKGBUILD_NEW    2017-12-28 14:11:27.496965217 +0100
  3. @@ -1,17 +1,35 @@
  4. +# Contributor: Vladimir Keleshev <vladimir [at] keleshev [dot] com>
  5. +# Maintainer: ???
  6. +
  7.  _name=schema
  8. -pkgname="python-$_name"
  9. -pkgver=0.6.5
  10. +pkgbase="python-${_name}"
  11. +pkgname=("python2-${_name}" "python-${_name}")
  12. +pkgver=0.6.6
  13.  pkgrel=1
  14.  pkgdesc='Python module to validate and convert data structures.'
  15. -arch=('i686' 'x86_64')
  16. -url="https://github.com/halst/$_name"
  17. +arch=('any')
  18. +url="https://github.com/keleshev/${_name}"
  19.  license=('MIT')
  20. -depends=('python')
  21. -source=("https://files.pythonhosted.org/packages/source/s/$_name/$_name-$pkgver.tar.gz")
  22. -sha1sums=('5d2ec7bc20577099f614bc5ab2ee9096071f9fd3')
  23. +makedepends=('python-setuptools' 'python-pytest' 'python2-setuptools' 'python2-pytest')
  24. +source=("https://github.com/keleshev/${_name}/archive/v${pkgver}.tar.gz")
  25. +sha1sums=('fad10e26ba7bb28ec0d0e57f4410882dc357ab63')
  26. +
  27. +check() {
  28. +  cd ${_name}-${pkgver}
  29. +  python2 setup.py test
  30. +  python setup.py test
  31. +}
  32. +
  33. +package_python2-schema() {
  34. +  depends=('python2')
  35. +  cd "${srcdir}/${_name}-${pkgver}"
  36. +  python2 setup.py install --root="${pkgdir}" --optimize=1
  37. +  install -Dm644 LICENSE-MIT ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT
  38. +}
  39.  
  40. -package() {
  41. -   cd "$srcdir/$_name-$pkgver"
  42. -   python setup.py install --root="$pkgdir" --optimize=1
  43. -   install -Dm644 {,"$pkgdir/usr/share/licenses/$pkgname/"}LICENSE-MIT
  44. +package_python-schema() {
  45. +  depends=('python')
  46. +  cd "${srcdir}/${_name}-${pkgver}"
  47. +  python setup.py install --root="${pkgdir}" --optimize=1
  48. +  install -Dm644 LICENSE-MIT ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT
  49.  }
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