summaryrefslogtreecommitdiff
path: root/pcr/python-rospkg
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-22 15:47:34 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-22 15:47:34 +0100
commita3c8089437a1033fc4531c714067bcd59bdac469 (patch)
treeaa842461305fed3bb390eb83a132b1192a0cadaf /pcr/python-rospkg
parent23827f7e067e0f41a928113bb0b81a9e5887d0b9 (diff)
downloadabslibre-a3c8089437a1033fc4531c714067bcd59bdac469.tar.gz
abslibre-a3c8089437a1033fc4531c714067bcd59bdac469.tar.bz2
abslibre-a3c8089437a1033fc4531c714067bcd59bdac469.zip
pcr/python-rospkg: moved from python2-rospkg and updated
Diffstat (limited to 'pcr/python-rospkg')
-rw-r--r--pcr/python-rospkg/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/pcr/python-rospkg/PKGBUILD b/pcr/python-rospkg/PKGBUILD
new file mode 100644
index 000000000..b2dd7fb9d
--- /dev/null
+++ b/pcr/python-rospkg/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>
+
+_pkgname=rospkg
+pkgname=(python{,2}-$_pkgname)
+pkgver=1.1.7
+pkgrel=1
+pkgdesc="ROS package library"
+arch=(any)
+url="http://wiki.ros.org/rospkg"
+license=('BSD3')
+
+makedepends=(python{,2}-setuptools)
+source=("https://files.pythonhosted.org/packages/source/r/rospkg/rospkg-${pkgver}.tar.gz")
+sha256sums=('c6e918e13a6a51b362fd07b9a298f64e4cb066ee1e6168ac95b690c0b609b2ab')
+
+prepare() {
+ cp -r "$srcdir"/$_pkgname-$pkgver "$srcdir"/$_pkgname-$pkgver-python2
+ mv "$srcdir"/$_pkgname-$pkgver "$srcdir"/$_pkgname-$pkgver-python
+
+ cd "$srcdir"/$_pkgname-$pkgver-python2
+ find -type f -print0 | xargs -0 sed -i -e 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/env python2/g'
+}
+
+_package() {
+ depends=($1)
+ cd "$srcdir"/$_pkgname-$pkgver-$1
+ $1 setup.py install --root="$pkgdir"
+}
+
+for _pkg in "${pkgname[@]}"; do
+ eval "package_$_pkg () { _package ${_pkg%%-*}; }"
+done