diff options
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 13 insertions, 39 deletions
@@ -1,28 +1,18 @@ pkgbase = python-catkin_lint pkgdesc = Check catkin packages for common errors pkgver = 1.4.16 - pkgrel = 1 + pkgrel = 2 url = https://github.com/fkie/catkin_lint arch = any license = BSD makedepends = python-setuptools - makedepends = python2-setuptools - source = https://files.pythonhosted.org/packages/source/c/catkin_lint/catkin_lint-1.4.16.tar.gz - md5sums = 6252b8ac505cfc0a87d0064e316db460 - -pkgname = python-catkin_lint - depends = depends = python depends = python-catkin_pkg - conflicts = python-catkin-lint + provides = python-catkin-lint conflicts = python2-catkin_lint - replaces = python-catkin-lint + conflicts = python-catkin-lint + source = https://files.pythonhosted.org/packages/source/c/catkin_lint/catkin_lint-1.4.16.tar.gz + md5sums = 6252b8ac505cfc0a87d0064e316db460 -pkgname = python2-catkin_lint - depends = - depends = python2 - depends = python2-catkin_pkg - conflicts = python2-catkin-lint - conflicts = python-catkin_lint - replaces = python2-catkin-lint +pkgname = python-catkin_lint @@ -1,43 +1,27 @@ # Maintainer: Kartik Mohta <kartikmohta@gmail.com> pkgbase=('python-catkin_lint') -pkgname=('python-catkin_lint' 'python2-catkin_lint') +pkgname=('python-catkin_lint') _module='catkin_lint' pkgver='1.4.16' -pkgrel=1 +pkgrel=2 pkgdesc="Check catkin packages for common errors" url="https://github.com/fkie/catkin_lint" -depends=() -makedepends=('python-setuptools' 'python2-setuptools') +depends=('python' 'python-catkin_pkg') +provides=('python-catkin-lint') +conflicts=('python2-catkin_lint' 'python-catkin-lint') +makedepends=('python-setuptools') license=('BSD') arch=('any') source=("https://files.pythonhosted.org/packages/source/c/catkin_lint/catkin_lint-${pkgver}.tar.gz") md5sums=('6252b8ac505cfc0a87d0064e316db460') -prepare() { - cp -a "${srcdir}/${_module}-${pkgver}"{,-python2} -} - build() { cd "${srcdir}/${_module}-${pkgver}" python setup.py build - - cd "${srcdir}/${_module}-${pkgver}-python2" - python2 setup.py build } -package_python-catkin_lint() { - depends+=('python' 'python-catkin_pkg') - conflicts=('python-catkin-lint' 'python2-catkin_lint') - replaces=('python-catkin-lint') +package() { cd "${srcdir}/${_module}-${pkgver}" python setup.py install --root="${pkgdir}" --optimize=1 --skip-build } - -package_python2-catkin_lint() { - depends+=('python2' 'python2-catkin_pkg') - conflicts=('python2-catkin-lint' 'python-catkin_lint') - replaces=('python2-catkin-lint') - cd "${srcdir}/${_module}-${pkgver}-python2" - python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build -} |