# Maintainer: Miguel de Val-Borro # Contributor: Universebenzene pkgname=('python2-astropy-helpers') pkgver=2.0.11 pkgrel=1 pkgdesc="Utilities used for building the Astropy python library for astronomy" arch=('any') url="https://github.com/astropy/astropy-helpers" license=('BSD') makedepends=('python2-setuptools') source=("https://files.pythonhosted.org/packages/source/a/astropy-helpers/astropy-helpers-${pkgver}.tar.gz") md5sums=('1a0350277bd6ac4c53a79f1fb5dbba30') build() { cd ${srcdir}/astropy-helpers-${pkgver} patch -p1 -i ../../astropy_helpers.patch python2 setup.py build --use-system-libraries } package() { cd ${srcdir}/astropy-helpers-${pkgver} install -D -m644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.rst" python2 setup.py install --prefix=/usr --root=${pkgdir} }