summaryrefslogtreecommitdiff
path: root/pcr/python2-rospkg
diff options
context:
space:
mode:
authoraurelien <aurelien@cwb.io>2012-11-20 17:05:20 +0100
committeraurelien <aurelien@cwb.io>2012-11-20 17:05:20 +0100
commita9ef0f056d0fca5ed39c6e0e8dfec8a218ed8671 (patch)
treebedf53b85b0d0b6784e549786a98e7cb76474697 /pcr/python2-rospkg
parente39e3bd9c06df33666bad51d7ffee889d44c8eef (diff)
+ bison++ log4cxx mediatomb perl-file-find-rule perl-num
ber-compare perl-text-glob python2-empy python2-rospkg rosinstall vcstools
Diffstat (limited to 'pcr/python2-rospkg')
-rw-r--r--pcr/python2-rospkg/PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/pcr/python2-rospkg/PKGBUILD b/pcr/python2-rospkg/PKGBUILD
new file mode 100644
index 000000000..cf6116ba0
--- /dev/null
+++ b/pcr/python2-rospkg/PKGBUILD
@@ -0,0 +1,23 @@
+# Contributor: Somebody <somebody[at]foo[dot]tld>
+# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>
+_name=rospkg
+pkgname=python2-rospkg
+pkgver=1.0.15
+pkgrel=1
+pkgdesc="provides basic utilities for querying information about ROS packages, stacks, and distributions."
+url="http://ros.org/doc/api/rospkg/html/python_api.html"
+arch=('x86_64' 'i686')
+license=('BSD')
+depends=('python2')
+optdepends=()
+makedepends=('python2-distribute')
+conflicts=()
+replaces=()
+backup=()
+source=(http://pr.willowgarage.com/downloads/${_name}/${_name}-${pkgver}.tar.gz)
+
+build() {
+ cd ${srcdir}/${_name}-${pkgver}
+ find -type f -print0 | xargs -0 sed -i -e 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/env python2/g'
+ python2 setup.py install --root="${pkgdir}" --optimize=1 || return 1
+}