core/qscintilla/PKGBUILD

77 lines
2.3 KiB
Bash
Raw Normal View History

2010-12-24 05:13:59 +08:00
pkgbase=qscintilla
2018-11-05 22:33:20 +08:00
pkgname=('qscintilla-qt5' 'python3-qscintilla-qt5' 'python-qscintilla-qt5-common' 'python2-qscintilla-qt5')
pkgver=2.10.8
2018-11-05 22:33:20 +08:00
pkgrel=2
2010-03-14 23:48:48 +08:00
license=('GPL')
arch=('x86_64')
2010-03-14 23:48:48 +08:00
url="http://www.riverbankcomputing.co.uk/software/qscintilla/intro"
2018-11-05 22:33:20 +08:00
makedepends=('python3-pyqt5' 'qt5-tools' 'sip')
2018-01-22 07:42:57 +08:00
options=('!buildflags') # Fix Qt Designer plugin
source=("https://downloads.sourceforge.net/pyqt/QScintilla_gpl-${pkgver}.tar.gz")
md5sums=('3f497c0f6bf7ead40b5821b86e1f5421')
2010-12-24 05:13:59 +08:00
2010-03-14 23:48:48 +08:00
build() {
2018-01-22 07:42:57 +08:00
cd "$srcdir"/QScintilla_gpl-${pkgver}
export QMAKEFEATURES=$PWD/Qt4Qt5/features/
2010-03-14 23:48:48 +08:00
2018-11-05 22:33:20 +08:00
msg 'building qscintilla main'
cd Qt4Qt5
2018-01-22 07:42:57 +08:00
qmake-qt5 qscintilla.pro
make
2018-11-05 22:33:20 +08:00
msg 'build designer'
2018-01-22 07:42:57 +08:00
cd ../designer-Qt4Qt5
qmake-qt5 designer.pro INCLUDEPATH+=../Qt4Qt5 QMAKE_LIBDIR+=../Qt4Qt5
make
2018-11-05 22:33:20 +08:00
msg 'build python3'
2018-01-22 07:42:57 +08:00
cd ../
cp -rf Python Python2
cd Python
python3 configure.py --pyqt=PyQt5 -n ../Qt4Qt5/ -o ../Qt4Qt5/ -c --qmake /usr/bin/qmake-qt5
make
}
package_qscintilla-qt5() {
pkgdesc="A port to Qt5 of Neil Hodgson's Scintilla C++ editor class"
depends=('qt5-base')
2013-04-02 08:56:50 +08:00
2018-01-22 07:42:57 +08:00
cd QScintilla_gpl-${pkgver}/Qt4Qt5
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
cd ../designer-Qt4Qt5
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
2010-03-14 23:48:48 +08:00
}
2018-01-22 07:42:57 +08:00
package_python-qscintilla-qt5-common() {
pkgdesc="Common python qscintilla bindings files shared between python-qscintilla-qt5 and python2-qscintilla-qt5"
depends=('qscintilla-qt5')
2010-03-14 23:48:48 +08:00
2018-01-22 07:42:57 +08:00
cd QScintilla_gpl-${pkgver}/Python
2010-12-24 05:13:59 +08:00
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
2018-01-22 07:42:57 +08:00
# Provided by python-qscintilla
rm -r "${pkgdir}"/usr/lib
}
package_python3-qscintilla-qt5() {
pkgdesc="Python 3.x bindings for QScintilla2"
depends=('python-qscintilla-qt5-common' 'python3-pyqt5')
cd QScintilla_gpl-${pkgver}/Python
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
# Provided by python-qscintilla-common
rm -r "${pkgdir}"/usr/share
}
package_python2-qscintilla-qt5() {
pkgdesc="Python 2.x bindings for QScintilla2"
depends=('python-qscintilla-qt5-common' 'python2-pyqt5')
cd QScintilla_gpl-${pkgver}/Python2
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
# Provided by python-qscintilla
rm -r "${pkgdir}"/usr/share
}