summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKartik Mohta2017-06-02 19:45:29 -0400
committerKartik Mohta2017-06-02 19:45:29 -0400
commit576a7991e1b90088f3783f4458964f497d8a16d9 (patch)
tree57c382f673ee64b2322896d0b935090151e8697a
parent324ca76ef18523bae01d0bae36ef9df38dc35941 (diff)
downloadaur-576a7991e1b90088f3783f4458964f497d8a16d9.tar.gz
Add conflicts and replaces for old package on AUR
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
2 files changed, 8 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0d090476d55..33ab16320db 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -14,9 +14,13 @@ pkgname = python-catkin_lint
depends =
depends = python
depends = python-catkin_pkg
+ conflicts = python-catkin-lint
+ replaces = python-catkin-lint
pkgname = python2-catkin_lint
depends =
depends = python2
depends = python2-catkin_pkg
+ conflicts = python2-catkin-lint
+ replaces = python2-catkin-lint
diff --git a/PKGBUILD b/PKGBUILD
index bd167845fe1..8a846a8c015 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,12 +28,16 @@ build() {
package_python-catkin_lint() {
depends+=('python' 'python-catkin_pkg')
+ conflicts=('python-catkin-lint')
+ replaces=('python-catkin-lint')
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')
+ replaces=('python2-catkin-lint')
cd "${srcdir}/${_module}-${pkgver}-python2"
python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}