Date: Friday, April 7, 2023 @ 04:48:50
Author: felixonmars
Revision: 1440564
archrelease: copy trunk to community-staging-any
Added:
python-srcinfo/repos/community-staging-any/
python-srcinfo/repos/community-staging-any/PKGBUILD
(from rev 1440562, python-srcinfo/trunk/PKGBUILD)
python-srcinfo/repos/community-staging-any/keys/
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-srcinfo/repos/community-staging-any/PKGBUILD (from rev 1440562,
python-srcinfo/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 04:48:50 UTC (rev 1440564)
@@ -0,0 +1,35 @@
+# Maintainer: Johannes Löthberg <[email protected]>
+
+pkgname=python-srcinfo
+pkgver=0.1.1
+_commit=a7cdd66dc402eed35aa35f3753bbdefc69f84554
+pkgrel=2
+
+pkgdesc="Simple .SRCINFO parsing library"
+url='https://github.com/kyrias/python-srcinfo'
+arch=(any)
+license=(ISC)
+
+depends=(python python-parse)
+makedepends=(git python-build python-installer python-poetry-core python-wheel)
+
+source=("git+https://github.com/kyrias/python-srcinfo?signed#commit=$_commit")
+
+validpgpkeys=(5134EF9EAF65F95B6BB1608E50FB9B273A9D0BB5)
+sha256sums=(SKIP)
+
+build() {
+ cd python-srcinfo
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd python-srcinfo
+ python -m unittest discover -v
+}
+
+package() {
+ cd python-srcinfo
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+}