summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/python-rosinstall/PKGBUILD24
-rw-r--r--pcr/python2-rosinstall/PKGBUILD25
2 files changed, 24 insertions, 25 deletions
diff --git a/pcr/python-rosinstall/PKGBUILD b/pcr/python-rosinstall/PKGBUILD
new file mode 100644
index 000000000..22fa54793
--- /dev/null
+++ b/pcr/python-rosinstall/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+_pkgname=rosinstall
+pkgname=(python-$_pkgname)
+pkgver=0.7.8
+pkgrel=3
+pkgdesc='Tool to download/boostrap the ROS stack'
+arch=(any)
+url='http://www.ros.org/'
+license=('BSD3')
+
+makedepends=(python-setuptools)
+source=("https://files.pythonhosted.org/packages/source/r/rosinstall/rosinstall-$pkgver.tar.gz")
+sha256sums=('2ba808bf8bac2cc3f13af9745184b9714c1426e11d09eb96468611b2ad47ed40')
+
+_package() {
+ depends=($1 $1-rosdistro $1-vcstools $1-wstool $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-rosinstall/PKGBUILD b/pcr/python2-rosinstall/PKGBUILD
deleted file mode 100644
index 940e3443d..000000000
--- a/pcr/python2-rosinstall/PKGBUILD
+++ /dev/null
@@ -1,25 +0,0 @@
-# Contributor (Arch) : Sean Greenslade <zootboysean @ gmail . com>
-# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
-
-pkgdesc='Tool to download/boostrap the ROS stack'
-url='http://www.ros.org/'
-
-pkgname='python2-rosinstall'
-pkgver='0.7.5'
-pkgrel='1'
-arch=('any')
-license=('BSD3')
-depends=('python2' 'cmake' 'python2-vcstools' 'python2-wstool'
- 'python2-rosdistro' 'git' 'python2-yaml')
-makedepends=('python2-setuptools')
-source=("http://download.ros.org/downloads/rosinstall/rosinstall-$pkgver.tar.gz")
-
-build() {
- cd "${srcdir}/rosinstall-${pkgver}"
- sed -i 's/env python /env python2 /' src/rosinstall/setupfiles.py
-}
-package() {
- cd "${srcdir}/rosinstall-${pkgver}"
- python2 setup.py install --root=$pkgdir --optimize=1
-}
-md5sums=('7824a968e98f6ed79ddd0740c8fe5035')