Date: Wednesday, October 7, 2020 @ 20:26:56 Author: foxboron Revision: 720953
archrelease: copy trunk to community-any Added: python-milc/repos/community-any/ python-milc/repos/community-any/PKGBUILD (from rev 720952, python-milc/trunk/PKGBUILD) ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Copied: python-milc/repos/community-any/PKGBUILD (from rev 720952, python-milc/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2020-10-07 20:26:56 UTC (rev 720953) @@ -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: