[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Tue Dec 26 00:34:35 UTC 2017
Date: Tuesday, December 26, 2017 @ 00:34:34
Author: felixonmars
Revision: 276050
addpkg: python-vcversioner 2.16.0.0-1
Added:
python-vcversioner/
python-vcversioner/repos/
python-vcversioner/trunk/
python-vcversioner/trunk/PKGBUILD
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Added: python-vcversioner/trunk/PKGBUILD
===================================================================
--- python-vcversioner/trunk/PKGBUILD (rev 0)
+++ python-vcversioner/trunk/PKGBUILD 2017-12-26 00:34:34 UTC (rev 276050)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-vcversioner
+pkgname=(python-vcversioner python2-vcversioner)
+pkgver=2.16.0.0
+pkgrel=1
+pkgdesc="Use version control tags to discover version numbers"
+url="https://github.com/habnabit/vcversioner"
+license=('ISC')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.bz2::https://github.com/habnabit/vcversioner/archive/$pkgver.tar.gz")
+sha512sums=('0ce7edf28d0626707f977b565f938a754d374d0cada8683f05fa6d1088930d4d858213dbcb5dba149d828e76341eec4a168ef1998ce9894b72c35c1eef59bd08')
+
+prepare() {
+ echo -n "$pkgver-0-UNKNOWN" > vcversioner-$pkgver/version.txt
+ cp -a vcversioner-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/vcversioner-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/vcversioner-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/vcversioner-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/vcversioner-$pkgver-py2
+ python2 setup.py pytest
+}
+
+package_python-vcversioner() {
+ depends=('python')
+
+ cd vcversioner-$pkgver
+ python3 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+package_python2-vcversioner() {
+ depends=('python2')
+
+ cd vcversioner-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
Property changes on: python-vcversioner/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list