git » qscintilla.git » commit 8f62a6e

upstream release; merged python2-qscintilla

author Andrea Scarpino
2011-03-31 21:19:18 UTC
committer Andrea Scarpino
2011-03-31 21:19:18 UTC
parent 7750052c922e276a0975277e2e0ecaffb12445bc

upstream release; merged python2-qscintilla

PKGBUILD +19 -5

diff --git a/PKGBUILD b/PKGBUILD
index 902dbc9..ef8d6c8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,16 +2,16 @@
 # Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
 
 pkgbase=qscintilla
-pkgname=('qscintilla' 'python-qscintilla')
-pkgver=2.4.6
-pkgrel=8
+pkgname=('qscintilla' 'python-qscintilla' 'python2-qscintilla')
+pkgver=2.5
+pkgrel=1
 license=('GPL')
 arch=('i686' 'x86_64')
 url="http://www.riverbankcomputing.co.uk/software/qscintilla/intro"
 makedepends=('python-qt')
 source=("http://riverbankcomputing.com/static/Downloads/QScintilla2/QScintilla-gpl-${pkgver}.tar.gz"
         'configure.py-objdir-support.diff')
-md5sums=('424a89736b900e6ca5bc6d929cdafaf8'
+md5sums=('c4677b837c16bcb9d806ff04d5a727b8'
          '8cf9c06252e2f11ab00e62848e322fd3')
 
 
@@ -27,9 +27,15 @@ build() {
     qmake designer.pro INCLUDEPATH+=../Qt4 QMAKE_LIBDIR+=../Qt4
     make
 
-    cd ../Python
+    cd ../
+    cp -rf Python Python2
+    cd Python
     python configure.py -n ../Qt4/ -o ../Qt4 -c -p 4
     make
+
+    cd ../Python2
+    python2 configure.py -n ../Qt4/ -o ../Qt4 -c -p 4
+    make    
 }
 
 package_qscintilla() {
@@ -51,3 +57,11 @@ package_python-qscintilla() {
     install -Dm755 Qsci.so \
       "${pkgdir}/usr/lib/python3.2/site-packages/PyQt4/Qsci.so"
 }
+
+package_python2-qscintilla() {
+    pkgdesc="Python 2 bindings for QScintilla2"
+    depends=('qscintilla' 'python2-qt')
+
+    cd "${srcdir}/QScintilla-gpl-${pkgver}/Python2"
+    make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
+}