summaryrefslogtreecommitdiff
path: root/pcr/python-rosdistro
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-22 15:48:33 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-22 15:48:33 +0100
commit1c821f7f7035ec2668b935e30764774154e366b9 (patch)
tree7fd8a9db6064c0790cbf7e56f96a15bdf3284243 /pcr/python-rosdistro
parentf6bd8c6730af0a79862f66c9a9887e1a93eba28b (diff)
pcr/python-rosdistro: moved from python2-rosdistro and updated
Diffstat (limited to 'pcr/python-rosdistro')
-rw-r--r--pcr/python-rosdistro/PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/pcr/python-rosdistro/PKGBUILD b/pcr/python-rosdistro/PKGBUILD
new file mode 100644
index 000000000..b7d93e7e0
--- /dev/null
+++ b/pcr/python-rosdistro/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+_pkgname=rosdistro
+pkgname=(python-$_pkgname)
+pkgver=0.7.2
+pkgrel=1
+pkgdesc="A tool to work with rosdistro files"
+arch=(any)
+url="http://wiki.ros.org/rosdistro"
+license=(BSD3 MIT)
+
+makedepends=(python-setuptools)
+source=("https://files.pythonhosted.org/packages/source/r/rosdistro/rosdistro-$pkgver.tar.gz")
+sha256sums=('6623545067d5f0098f8f6f460c7613321ab418d04bad3b479cd1cafc1df56195')
+
+_package() {
+ depends=($1)
+ cd "$srcdir"/$_pkgname-$pkgver
+ $1 setup.py install --root="$pkgdir"
+}
+
+for _pkg in "${pkgname[@]}"; do
+ eval "package_$_pkg () { _package ${_pkg%%-*}; }"
+done