Date: Sunday, August 1, 2021 @ 18:19:29 Author: felixonmars Revision: 991985
addpkg: python-should-dsl 2.1.2-1 Added: python-should-dsl/ python-should-dsl/repos/ python-should-dsl/trunk/ python-should-dsl/trunk/PKGBUILD ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Added: python-should-dsl/trunk/PKGBUILD =================================================================== --- python-should-dsl/trunk/PKGBUILD (rev 0) +++ python-should-dsl/trunk/PKGBUILD 2021-08-01 18:19:29 UTC (rev 991985) @@ -0,0 +1,31 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-should-dsl +pkgver=2.1.2 +_commit=ded0323344f21311f366ffc711b65245aafc11f1 +pkgrel=1 +pkgdesc="Should assertions in Python as clear and readable as possible" +url="https://github.com/nsi-iff/should-dsl" +license=('MIT') +arch=('any') +depends=('python') +makedepends=('python-setuptools') +source=("https://github.com/nsi-iff/should-dsl/archive/$_commit/$pkgname-$_commit.tar.gz") +sha512sums=('4e3d9b5066828c9b7d01ff9f2941ff92715cd576667c9ebe96d07bf037221ce1ee2fb3378844852cbe56560257073d4747e0fa079964809c18c349c3b3543e8b') + +build() { + cd should-dsl-$_commit + python setup.py build +} + +check() { + cd should-dsl-$_commit + python run_all_examples.py +} + +package() { + cd should-dsl-$_commit + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +}