Advertisement
Guest User

Untitled

a guest
Mar 14th, 2021
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.98 KB | None | 0 0
  1. # Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
  2.  
  3. pkgname='python-arch'
  4. _module='arch'
  5. pkgver='4.18'
  6. pkgrel=1
  7. pkgdesc="ARCH models in Python"
  8. url="https://github.com/bashtage/arch"
  9. depends=('python' 'python-numpy' 'python-pandas'
  10.          'python-scipy' 'python-statsmodels')
  11. checkdepends=('python-pytest' 'python-seaborn')
  12. makedepends=('cython' 'python-setuptools')
  13. license=('custom:University of Illinois/NCSA Open Source License')
  14. arch=('x86_64')
  15. source=("$pkgname-$pkgver.tar.gz::$url/archive/v${pkgver}.tar.gz")
  16. sha256sums=('f172c8eeb3371393a48c54f55dbd2e49eaf70e64e7e22f9556d82a3206efea3a')
  17.  
  18. build() {
  19.   cd "${srcdir}/${_module}-${pkgver}"
  20.   python setup.py build_ext --inplace
  21. }
  22.  
  23. package() {
  24.   cd "${srcdir}/${_module}-${pkgver}"
  25.   python setup.py install --root="${pkgdir}" --optimize=1
  26.   install -D -m644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
  27. }
  28.  
  29. check() {
  30.   cd "${srcdir}/${_module}-${pkgver}"
  31.   PYTHONPATH=.. py.test arch/tests
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement