summaryrefslogtreecommitdiff
path: root/pcr/python-rosinstall/PKGBUILD
blob: 96e3d08a3ef4272608ce4aaee6847f5aa543a43b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Aurélien DESBRIÈRES <aurelien@hackers.camp>

_pkgname=rosinstall
pkgname=(python-$_pkgname)
pkgver=0.7.8
pkgrel=3
pkgdesc='Tool to download/bootstrap 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