[arch-commits] Commit in python-semver/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:21:49 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:21:48
  Author: felixonmars
Revision: 1058103

archrelease: copy trunk to community-staging-any

Added:
  python-semver/repos/community-staging-any/
  python-semver/repos/community-staging-any/PKGBUILD
    (from rev 1058098, python-semver/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: python-semver/repos/community-staging-any/PKGBUILD (from rev 1058098, python-semver/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:21:48 UTC (rev 1058103)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-semver
+pkgver=2.13.0
+pkgrel=4
+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