[arch-commits] Commit in python-vcversioner/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 17:45:47 UTC 2020
Date: Thursday, November 12, 2020 @ 17:45:46
Author: felixonmars
Revision: 752801
archrelease: copy trunk to community-staging-any
Added:
python-vcversioner/repos/community-staging-any/
python-vcversioner/repos/community-staging-any/PKGBUILD
(from rev 752799, python-vcversioner/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-vcversioner/repos/community-staging-any/PKGBUILD (from rev 752799, python-vcversioner/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 17:45:46 UTC (rev 752801)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-vcversioner
+pkgver=2.16.0.0
+pkgrel=5
+pkgdesc="Use version control tags to discover version numbers"
+url="https://github.com/habnabit/vcversioner"
+license=('ISC')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.bz2::https://github.com/habnabit/vcversioner/archive/$pkgver.tar.gz")
+sha512sums=('0ce7edf28d0626707f977b565f938a754d374d0cada8683f05fa6d1088930d4d858213dbcb5dba149d828e76341eec4a168ef1998ce9894b72c35c1eef59bd08')
+
+prepare() {
+ echo -n "$pkgver-0-UNKNOWN" > vcversioner-$pkgver/version.txt
+}
+
+build() {
+ cd vcversioner-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd vcversioner-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd vcversioner-$pkgver
+ python3 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
More information about the arch-commits
mailing list