Date: Thursday, April 6, 2023 @ 12:06:54
Author: felixonmars
Revision: 1438626
archrelease: copy trunk to community-staging-any
Added:
python-versioningit/repos/community-staging-any/
python-versioningit/repos/community-staging-any/PKGBUILD
(from rev 1438625, python-versioningit/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-versioningit/repos/community-staging-any/PKGBUILD (from rev
1438625, python-versioningit/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 12:06:54 UTC (rev 1438626)
@@ -0,0 +1,32 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor:
+
+pkgname=python-versioningit
+pkgver=2.2.0
+pkgrel=2
+pkgdesc='Versioning It with your Version In Git'
+arch=('any')
+url='https://github.com/jwodder/versioningit'
+license=('MIT')
+depends=('python-packaging' 'python-tomli')
+makedepends=('python-setuptools' 'python-build' 'python-installer'
'python-wheel')
+checkdepends=('git' 'mercurial' 'python-pytest' 'python-tox')
+source=("${pkgname#*n-}-${pkgver}.tar.gz::${url}/releases/download/v${pkgver}/${pkgname#*n-}-${pkgver}.tar.gz")
+sha256sums=('eb18e7ba7268a880bf1ccfe92e534e96ab34e0397f28dcbcb3fc0da4f6a5b6bd')
+
+build() {
+ cd ${pkgname#*n-}-${pkgver}
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd ${pkgname#*n-}-${pkgver}
+ tox -e py310
+}
+
+package() {
+ cd ${pkgname#*n-}-${pkgver}
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}