Date: Sunday, August 1, 2021 @ 18:19:38 Author: felixonmars Revision: 991986
archrelease: copy trunk to community-any Added: python-should-dsl/repos/community-any/ python-should-dsl/repos/community-any/PKGBUILD (from rev 991985, python-should-dsl/trunk/PKGBUILD) ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Copied: python-should-dsl/repos/community-any/PKGBUILD (from rev 991985, python-should-dsl/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2021-08-01 18:19:38 UTC (rev 991986) @@ -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/ +}