# Maintainer: Aurélien Desbrières <aurelien@hackers.camp>

_pkgname=rosdistro
pkgname=(python-$_pkgname)
pkgver=0.7.2
pkgrel=1
pkgdesc="A tool to work with rosdistro files"
arch=(any)
url="http://wiki.ros.org/rosdistro"
license=(BSD3 MIT)

makedepends=(python-setuptools)
source=("https://files.pythonhosted.org/packages/source/r/rosdistro/rosdistro-$pkgver.tar.gz")
sha256sums=('6623545067d5f0098f8f6f460c7613321ab418d04bad3b479cd1cafc1df56195')

_package() {
  depends=($1)
  cd "$srcdir"/$_pkgname-$pkgver
  $1 setup.py install --root="$pkgdir"
}

for _pkg in "${pkgname[@]}"; do
  eval "package_$_pkg () { _package ${_pkg%%-*}; }"
done
