# Contributor (Arch): Lukas Linhart <bugs@almad.net> # Contributor (Arch): Changaco <changaco ατ changaco δοτ net> # Contributor (Arch): Nicolas Pouillard <nicolas.pouillard@gmail.com> # Contributor (Arch): Sean Greenslade <zootboysean@gmail.com> # Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> pkgname=python2-rospkg pkgver=1.0.35 pkgrel=2 pkgdesc="ROS - provides basic utilities for querying information about ROS packages, stacks, and distributions." url="http://docs.ros.org/independent/api/rospkg/html/" arch=('any') license=('BSD3') depends=('python2') makedepends=('python2-distribute') conflicts=() replaces=() backup=() source=("https://pypi.python.org/packages/source/r/rospkg/rospkg-${pkgver}.tar.gz") md5sums=('de31059c920121b691f7bbdf6973e8dc') build() { cd ${srcdir}/rospkg-${pkgver} find -type f -print0 | xargs -0 sed -i -e 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/env python2/g' python2 setup.py build } package() { cd ${srcdir}/rospkg-${pkgver} python2 setup.py install --optimize=1 --skip-build --prefix="/usr" --root="${pkgdir}" }