diff options
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/python-rosdistro/PKGBUILD | 24 | ||||
-rw-r--r-- | pcr/python2-rosdistro/PKGBUILD | 23 |
2 files changed, 24 insertions, 23 deletions
diff --git a/pcr/python-rosdistro/PKGBUILD b/pcr/python-rosdistro/PKGBUILD new file mode 100644 index 000000000..b7d93e7e0 --- /dev/null +++ b/pcr/python-rosdistro/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer (Parabola) : 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 diff --git a/pcr/python2-rosdistro/PKGBUILD b/pcr/python2-rosdistro/PKGBUILD deleted file mode 100644 index 05333a402..000000000 --- a/pcr/python2-rosdistro/PKGBUILD +++ /dev/null @@ -1,23 +0,0 @@ -# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> - -pkgname=python2-rosdistro -pkgver=0.4.2 -pkgrel=1 -pkgdesc="A tool to work with rosdistro files" -url="http://wiki.ros.org/rosdistro" -depends=('python2') -makedepends=('python2' 'python2-setuptools') -license=('BSD3, MIT') -arch=('any') -source=("https://pypi.python.org/packages/source/r/rosdistro/rosdistro-$pkgver.tar.gz") -md5sums=('2d8ac4214796e67c758a1318b6531b4f') - -build() { - cd $srcdir/rosdistro-$pkgver - python2 setup.py build -} - -package() { - cd $srcdir/rosdistro-$pkgver - python2 setup.py install --root="$pkgdir" --optimize=1 -} |