1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
7 pkgname=(qscintilla-qt5 python-qscintilla-qt5 qscintilla-qt6 python-qscintilla-qt6)
12 url="https://www.riverbankcomputing.com/software/qscintilla/intro"
13 makedepends=(python-pyqt5 qt5-tools python-pyqt6 qt6-tools sip pyqt-builder)
14 source=("https://www.riverbankcomputing.com/static/Downloads/QScintilla/$pkgver/QScintilla_src-$pkgver.tar.gz")
15 sha256sums=('800e3d2071a96bcccd7581346af0d2fe28fc30cd68530cb8302685d013afd54a')
18 cp -r QScintilla_src-$pkgver{,-qt5}
20 cd QScintilla_src-$pkgver-qt5/src
21 export QMAKEFEATURES=$PWD/src/features/
26 qmake-qt5 INCLUDEPATH+=../src QMAKE_LIBDIR+=../src
30 mv pyproject{-qt5,}.toml
33 --qsci-features-dir ../src/features \
34 --qsci-include-dir ../src \
35 --qsci-library-dir ../src \
36 --api-dir /usr/share/qt/qsci/api/python
40 cd "$srcdir"/QScintilla_src-$pkgver/src
41 export QMAKEFEATURES=$PWD/src/features/
46 qmake6 INCLUDEPATH+=../src QMAKE_LIBDIR+=../src
50 mv pyproject{-qt6,}.toml
53 --qsci-features-dir ../src/features \
54 --qsci-include-dir ../src \
55 --qsci-library-dir ../src \
56 --qmake=/usr/bin/qmake6
61 package_qscintilla-qt5() {
62 pkgdesc="A port to Qt5 of Neil Hodgson's Scintilla C++ editor class"
65 cd QScintilla_src-$pkgver-qt5/src
66 make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install
69 make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install
72 package_python-qscintilla-qt5() {
73 pkgdesc="Python bindings for QScintilla2"
74 depends=(qscintilla-qt5 python-pyqt5)
75 replaces=(python-qscintilla-qt5-common)
77 cd QScintilla_src-$pkgver-qt5/Python/build
78 make INSTALL_ROOT="$pkgdir" install
81 package_qscintilla-qt6() {
82 pkgdesc="A port to Qt6 of Neil Hodgson's Scintilla C++ editor class"
85 cd QScintilla_src-$pkgver/src
86 make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install
89 make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install
92 package_python-qscintilla-qt6() {
93 pkgdesc="Python bindings for QScintilla2"
94 depends=(qscintilla-qt6 python-pyqt6)
96 cd QScintilla_src-$pkgver/Python/build
97 make INSTALL_ROOT="$pkgdir" install