[arch-commits] Commit in qscintilla/trunk (PKGBUILD)

Andrea Scarpino andrea at archlinux.org
Wed Jan 19 12:24:26 EST 2011


    Date: Wednesday, January 19, 2011 @ 12:24:26
  Author: andrea
Revision: 106881

upgpkg: qscintilla 2.4.6-3
add qscintilla python 3 library; split out python 2 library in a new package and install common files into the qscintilla package

Modified:
  qscintilla/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++--------------
 1 file changed, 12 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-01-19 17:20:07 UTC (rev 106880)
+++ PKGBUILD	2011-01-19 17:24:26 UTC (rev 106881)
@@ -3,13 +3,13 @@
 # Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
 
 pkgbase=qscintilla
-pkgname=('qscintilla' 'python2-qscintilla')
+pkgname=('qscintilla' 'python-qscintilla')
 pkgver=2.4.6
-pkgrel=2
+pkgrel=3
 license=('GPL')
 arch=('i686' 'x86_64')
 url="http://www.riverbankcomputing.co.uk/software/qscintilla/intro"
-makedepends=('python2-qt')
+makedepends=('python-qt')
 source=("http://riverbankcomputing.com/static/Downloads/QScintilla2/QScintilla-gpl-${pkgver}.tar.gz"
         'configure.py-objdir-support.diff')
 md5sums=('424a89736b900e6ca5bc6d929cdafaf8'
@@ -29,15 +29,12 @@
     make
 
     cd ../Python
-    python2 configure.py -n ../Qt4/ -o ../Qt4 -c -p 4
+    python configure.py -n ../Qt4/ -o ../Qt4 -c -p 4
     make
 }
 
 package_qscintilla() {
     pkgdesc="A port to Qt4 of Neil Hodgson's Scintilla C++ editor class"
-    provides=('qscintilla2')
-    conflicts=('qscintilla2')
-    replaces=('qscintilla2')
     depends=('qt')
 
     cd ${srcdir}/QScintilla-gpl-${pkgver}/Qt4
@@ -45,15 +42,16 @@
 
     cd ${srcdir}/QScintilla-gpl-${pkgver}/designer-Qt4
     make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
+    
+    cd ${srcdir}/QScintilla-gpl-${pkgver}/Python
+    make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
 }
 
-package_python2-qscintilla() {
-    pkgdesc="Python bindings for QScintilla2"
-    provides=("python-qscintilla=${pkgver}")
-    conflicts=('python-qscintilla2' 'python-qscintilla')
-    replaces=('python-qscintilla2' 'python-qscintilla')
-    depends=('qscintilla' 'python2-qt')
+package_python-qscintilla() {
+    pkgdesc="Python 3 bindings for QScintilla2"
+    depends=('qscintilla' 'python-qt')
 
     cd "${srcdir}/QScintilla-gpl-${pkgver}/Python"
-    make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
+    install -Dm755 Qsci.so \
+      ${pkgdir}/usr/lib/python3.1/site-packages/PyQt4/Qsci.so
 }



More information about the arch-commits mailing list