# Maintainer: Quentin Bourgeois __reponame='intelhex' __pkgname="${__reponame}-scripts" __license_filename='LICENSE.txt' pkgname=("python-${__pkgname}") pkgver=2.1 pkgrel=1 pkgdesc='Python IntelHex scripts' url="https://github.com/bialix/${__reponame}" optdepends=() license=('BSD') arch=('any') source=("${__pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") sha512sums=('af5ee3cb7424d15cf259861dcedf6ca68ecfae0819cb9f5c3437a1c8ff8c2f03486dd9f12b93564a5e2f4b7bab4c055a44c6dbe2a86007165412336bd2a4554f') makedepends=('python-setuptools' 'python2-setuptools') check() { cd "${srcdir}/${__reponame}-${pkgver}" msg "Running tests" python setup.py test -q } package_python-intelhex-scripts() { depends=('python' 'python-setuptools') cd "${srcdir}/${__reponame}-${pkgver}" python setup.py install --root="${pkgdir}" --optimize=1 install -Dm644 "$__license_filename" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" rm -rf "${pkgdir}/usr/lib/" rm -rf "${pkgdir}/usr/share/" }