pyqt5: Fix PKGDESC, add conflicts

This commit is contained in:
totte 2013-12-12 11:55:20 +00:00
parent ab17270fbf
commit 2f0c3e2c4a

View File

@ -8,7 +8,7 @@ pkgbase=pyqt5
pkgname=pyqt5
pkgname=('python-pyqt5-common' 'python3-pyqt5' 'python2-pyqt5')
pkgver=5.1.1
pkgrel=2
pkgrel=3
arch=('x86_64')
url="http://riverbankcomputing.co.uk/software/pyqt/intro"
license=('GPL')
@ -48,8 +48,9 @@ build() {
}
package_python-pyqt5-common(){
pkgdesc="Common PyQt files shared between python-pyqt5 and python2-pyqt5"
pkgdesc="Common PyQt files shared between python3-pyqt5 and python2-pyqt5"
depends=('qt5-base')
conflicts=('pyqt5-common')
cd PyQt-gpl-${pkgver}
make -C pyrcc DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
@ -75,6 +76,9 @@ package_python3-pyqt5(){
# INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
# Fix conflicts with python-pyqt5
mv "${pkgdir}"/usr/bin/{,python3-}pyuic5
# Provided by pyqt-common
rm "${pkgdir}"/usr/bin/{pylupdate5,pyrcc5}
rm "${pkgdir}"/usr/share/qt5/qsci/api/python/PyQt5.api
@ -84,7 +88,7 @@ package_python2-pyqt5(){
pkgdesc="A set of Python 2.x bindings for the Qt5 toolkit"
depends=('python2-sip' 'python-pyqt5-common' 'python2')
optdepends=('python2-opengl: enable OpenGL 3D graphics in PyQt applications'
'python-dbus: for python-dbus mainloop support'
'python2-dbus: for python-dbus mainloop support'
'qt5-multimedia: QtMultimedia, QtMultimediaWidgets'
'qt5-tools: QtHelp, QtDesigner'
'qt5-svg: QtSvg'