[arch-commits] Commit in python-vcversioner/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Jun 11 12:43:48 UTC 2019


    Date: Tuesday, June 11, 2019 @ 12:43:46
  Author: felixonmars
Revision: 480412

archrelease: copy trunk to community-any

Added:
  python-vcversioner/repos/community-any/PKGBUILD
    (from rev 480411, python-vcversioner/trunk/PKGBUILD)
Deleted:
  python-vcversioner/repos/community-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-11 12:43:23 UTC (rev 480411)
+++ PKGBUILD	2019-06-11 12:43:46 UTC (rev 480412)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-vcversioner
-pkgname=(python-vcversioner python2-vcversioner)
-pkgver=2.16.0.0
-pkgrel=2
-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
-}

Copied: python-vcversioner/repos/community-any/PKGBUILD (from rev 480411, python-vcversioner/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-06-11 12:43:46 UTC (rev 480412)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-vcversioner
+pkgver=2.16.0.0
+pkgrel=3
+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