From a3c8089437a1033fc4531c714067bcd59bdac469 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Fri, 22 Feb 2019 15:47:34 +0100 Subject: pcr/python-rospkg: moved from python2-rospkg and updated --- pcr/python-rospkg/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pcr/python-rospkg/PKGBUILD (limited to 'pcr/python-rospkg') 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 + +_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 -- cgit v1.2.3