Date: Wednesday, October 7, 2020 @ 20:26:50 Author: foxboron Revision: 720952
upgpkg: python-milc 1.0.8-1 Added: python-milc/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Added: PKGBUILD =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-10-07 20:26:50 UTC (rev 720952) @@ -0,0 +1,32 @@ +# Maintainer: Morten Linderud <foxbo...@archlinux.org> + +pkgname=python-milc +pkgver=1.0.8 +pkgrel=1 +pkgdesc="Opinionated Batteries-Included Python 3 CLI Framework." +arch=("any") +url="https://milc.clueboard.co/#/" +license=("MIT") +depends=("python-appdirs" "python-argcomplete" "python-colorama") +makedepends=("python-setuptools") +checkdepends=("python-semver" "python-nose2") +source=("$pkgname-$pkgver.tar.gz::https://github.com/clueboard/milc/archive/${pkgver}.tar.gz") +sha256sums=('a3e824ee4ea23a450d59d65d7b3f007ba79888511a94d4be730ecb24af725fca') + +build() { + cd "${pkgname#python-}-${pkgver}" + python setup.py build +} + +check() { + cd "${pkgname#python-}-${pkgver}" + nose2 +} + +package() { + cd "${pkgname#python-}-${pkgver}" + python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set ts=4 sw=4 et: