Date: Thursday, October 29, 2020 @ 09:58:18 Author: ffy00 Revision: 736484
archrelease: copy trunk to community-any Added: python-covdefaults/repos/community-any/ python-covdefaults/repos/community-any/PKGBUILD (from rev 736483, python-covdefaults/trunk/PKGBUILD) ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Copied: python-covdefaults/repos/community-any/PKGBUILD (from rev 736483, python-covdefaults/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2020-10-29 09:58:18 UTC (rev 736484) @@ -0,0 +1,44 @@ +# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> + +_pkgname=covdefaults +pkgname=python-keyring +pkgver=1.2.0 +pkgrel=1 +pkgdesc='A coverage plugin to provide sensible default settings' +arch=('any') +url='https://github.com/asottile/covdefaults' +license=('MIT') +depends=('python-coverage') +makedepends=('python-setuptools') +checkdepends=('python-tox-current-env' 'python-pytest') +source=("$url/archive/v$pkgver.tar.gz") +sha512sums=('2ac214acc79905ed8c57f766d8ca7c163db56819db4cac95d0d9ecf21e3f455d7865c00d64a4398bd2c63f5250217f53a9a3569d8ba1219d9152034f8c9628e8') + +prepare() { + cd $_pkgname-$pkgver + + # remove coverage usage as it wants the plugin we are building + sed -i -e's|coverage run|python|' -e '/coverage .*/d' tox.ini +} + +build() { + cd $_pkgname-$pkgver + + python setup.py build +} + +check() { + cd $_pkgname-$pkgver + + tox -e py38 --current-env +} + +package() { + cd $_pkgname-$pkgver + + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + + install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: