# Maintainer (AUR): Kartik Mohta <kartikmohta@gmail.com>
# Maintainer  (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>

_pkgname=wstool
pkgname=python-$_pkgname
pkgver=0.1.17
pkgrel=1
pkgdesc="workspace multi-SCM commands"
url="http://wiki.ros.org/wstool"
depends=('python' 'python-vcstools' 'python-yaml')
replaces=('python2-wstool')
makedepends=('python-setuptools')
license=('BSD3')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/w/wstool/wstool-${pkgver}.tar.gz")
sha256sums=('c79b4f110ef17004c24972d742d2c5f606b0f6b424295e7ed029a48e857de237')

build() {
    cd "${srcdir}/${_pkgname}-${pkgver}"
    python setup.py build
}

package() {
    cd "${srcdir}/${_pkgname}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}