Date: Wednesday, April 5, 2023 @ 18:16:50
Author: felixonmars
Revision: 1437874
archrelease: copy trunk to community-staging-any
Added:
python-semantic-version/repos/community-staging-any/
python-semantic-version/repos/community-staging-any/PKGBUILD
(from rev 1437873, python-semantic-version/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-semantic-version/repos/community-staging-any/PKGBUILD (from rev
1437873, python-semantic-version/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 18:16:50 UTC (rev 1437874)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <[email protected]>
+
+pkgname=python-semantic-version
+pkgver=2.10.0
+pkgrel=2
+pkgdesc="A library implementing the 'SemVer' scheme."
+url="https://github.com/rbarrois/python-semanticversion"
+license=('BSD')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-django')
+source=("https://github.com/rbarrois/python-semanticversion/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('e060dd60db62663c6ebf21fdca33b2390d9bbad15fbdfa504221ab646426f09168caf00e79cee7ed4ef442c23fd587c9e421aa744990101ea626b58f4e320242')
+
+build() {
+ cd python-semanticversion-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd python-semanticversion-$pkgver
+ python setup.py egg_info
+ pytest
+}
+
+package() {
+ cd python-semanticversion-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}