summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-22 11:19:37 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-22 11:19:37 +0100
commitb259868df6ceb67f746bc5760d146f08eefdbbae (patch)
treeb0333da6ff35c248046cf78137b9fe50079f40e3
parent4dd54c7de8e908d30f6fce851b0a449ea77dfe81 (diff)
downloadabslibre-b259868df6ceb67f746bc5760d146f08eefdbbae.tar.gz
abslibre-b259868df6ceb67f746bc5760d146f08eefdbbae.tar.bz2
abslibre-b259868df6ceb67f746bc5760d146f08eefdbbae.zip
pcr/python-vcstools: moved from python2-vcstools and updated
-rw-r--r--pcr/python-vcstools/PKGBUILD25
-rw-r--r--pcr/python2-vcstools/PKGBUILD22
2 files changed, 25 insertions, 22 deletions
diff --git a/pcr/python-vcstools/PKGBUILD b/pcr/python-vcstools/PKGBUILD
new file mode 100644
index 000000000..6d1530354
--- /dev/null
+++ b/pcr/python-vcstools/PKGBUILD
@@ -0,0 +1,25 @@
+# Contributor (Arch) : Georg Bremer <pkgbuild@dschoordsch.de>
+# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+_pkgname=vcstools
+pkgname=(python{,2}-$_pkgname)
+pkgver=0.1.40
+pkgrel=1
+pkgdesc='API for interacting with different version control systems (VCS/SCMs)'
+arch=(any)
+url="http://ros.org/"
+license=('BSD3')
+
+makedepends=(python{,2}-setuptools)
+source=("https://files.pythonhosted.org/packages/source/v/vcstools/$_pkgname-$pkgver.tar.gz")
+sha256sums=('95586ab5a8dc02cd52074d88c4c8ecd20dfbaacaf4078b4c7ac1cf706ed4cad5')
+
+_package() {
+ depends=($1 $1-yaml)
+ cd "$srcdir"/$_pkgname-$pkgver
+ $1 setup.py install --root="$pkgdir"
+}
+
+for _pkg in "${pkgname[@]}"; do
+ eval "package_$_pkg () { _package ${_pkg%%-*}; }"
+done
diff --git a/pcr/python2-vcstools/PKGBUILD b/pcr/python2-vcstools/PKGBUILD
deleted file mode 100644
index 47fbf9bed..000000000
--- a/pcr/python2-vcstools/PKGBUILD
+++ /dev/null
@@ -1,22 +0,0 @@
-# Contributor (Arch) : Georg Bremer <pkgbuild@dschoordsch.de>
-# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
-
-pkgname='python2-vcstools'
-pkgver=0.1.36
-pkgrel=1
-pkgdesc='API for interacting with different version control systems (VCS/SCMs)'
-arch=('any')
-url="http://ros.org/"
-license=('BSD3')
-depends=('python2' 'python2-yaml')
-makedepends=('python2-setuptools')
-conflicts=('vcstools')
-replaces=('vcstools')
-source=("http://download.ros.org/downloads/vcstools/vcstools-$pkgver.tar.gz")
-md5sums=('e3ef997da464cf284ca36fd60e993ed6')
-
-package() {
- cd "$srcdir/vcstools-$pkgver"
- python2 setup.py install --root "$pkgdir"
-}
-# vim:set ts=2 sw=2 et: