[arch-commits] Commit in python-semver/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 15:52:31 UTC 2020
Date: Monday, November 9, 2020 @ 15:52:30
Author: felixonmars
Revision: 747205
archrelease: copy trunk to community-staging-any
Added:
python-semver/repos/community-staging-any/
python-semver/repos/community-staging-any/PKGBUILD
(from rev 747203, python-semver/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-semver/repos/community-staging-any/PKGBUILD (from rev 747203, python-semver/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 15:52:30 UTC (rev 747205)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-semver
+pkgver=2.13.0
+pkgrel=2
+pkgdesc="Python helper for Semantic Versioning"
+url="https://github.com/k-bx/python-semver"
+license=('BSD')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-cov')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/k-bx/python-semver/archive/$pkgver.tar.gz")
+sha512sums=('ca0d408d8bb7305e90802ea04d935cd7b76b8f166a9ec97ed3427dbc2cf60eeca0b2d27ad0cb2f15f32f5b2589d6717a63717c463183374c5335bf79e1eec222')
+
+prepare() {
+ sed -i '/tests_require/d' python-semver-$pkgver/setup.py
+}
+
+build() {
+ cd "$srcdir"/python-semver-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/python-semver-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd python-semver-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
More information about the arch-commits
mailing list