Commit e814f464 authored by totte's avatar totte

kdebindings-python: Fix pykdeuic4 arguments issue

parent c4258e74
......@@ -13,7 +13,7 @@ pkgname=('kdebindings-python-common'
'kdebindings-python2'
'kdebindings-python3')
pkgver=${_kdever}
pkgrel=12
pkgrel=13
url="https://projects.kde.org/projects/kde/kdebindings/pykde4"
arch=('x86_64')
license=('GPL' 'LGPL' 'FDL')
......@@ -73,6 +73,10 @@ package_kdebindings-python3() {
cd "${srcdir}"/build-python3
make DESTDIR="${pkgdir}" install
# Fix issue with wrong number of given arguments
sed 's/winfo = comp.compileUi(uifile, output, None)/winfo = comp.compileUi(uifile, output, None, "")/g' \
"${pkgdir}"/usr/lib/python3.3/site-packages/PyQt4/uic/pykdeuic4.py
# Provided by common
#rm -r "${pkgdir}"/usr/share/apps/pykde4/examples
#rm -r "${pkgdir}"/usr/share/sip/PyKDE4
......@@ -96,6 +100,10 @@ package_kdebindings-python2() {
cd "${srcdir}"/build-python2
make DESTDIR="${pkgdir}" install
# Fix issue with wrong number of given arguments
sed 's/winfo = comp.compileUi(uifile, output, None)/winfo = comp.compileUi(uifile, output, None, "")/g' \
"${pkgdir}"/usr/lib/python2.7/site-packages/PyQt4/uic/pykdeuic4.py
# Symlink
ln -s /usr/bin/pykdeuic4 "${pkgdir}"/usr/bin/pykdeuic4-2.7
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment