archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qscintilla / trunk / PKGBUILD
blobf756fa6077bc4e8fae85483b8a5ce69a1e39b45e
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>
6 pkgbase=qscintilla
7 pkgname=(qscintilla-qt5 python-qscintilla-qt5 qscintilla-qt6 python-qscintilla-qt6)
8 pkgver=2.13.1
9 pkgrel=3
10 license=(GPL)
11 arch=(x86_64)
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')
17 build() {
18   cp -r QScintilla_src-$pkgver{,-qt5}
20   cd QScintilla_src-$pkgver-qt5/src
21   export QMAKEFEATURES=$PWD/src/features/
22   qmake-qt5
23   make
25   cd ../designer
26   qmake-qt5 INCLUDEPATH+=../src QMAKE_LIBDIR+=../src
27   make
29   cd ../Python
30   mv pyproject{-qt5,}.toml
31   sip-build \
32     --no-make \
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
37   cd build
38   make
40   cd "$srcdir"/QScintilla_src-$pkgver/src
41   export QMAKEFEATURES=$PWD/src/features/
42   qmake6
43   make
45   cd ../designer
46   qmake6 INCLUDEPATH+=../src QMAKE_LIBDIR+=../src
47   make
49   cd ../Python
50   mv pyproject{-qt6,}.toml
51   sip-build \
52     --no-make \
53     --qsci-features-dir ../src/features \
54     --qsci-include-dir ../src \
55     --qsci-library-dir ../src \
56     --qmake=/usr/bin/qmake6
57   cd build
58   make
61 package_qscintilla-qt5() {
62   pkgdesc="A port to Qt5 of Neil Hodgson's Scintilla C++ editor class"
63   depends=(qt5-base)
65   cd QScintilla_src-$pkgver-qt5/src
66   make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install
68   cd ../designer
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"
83   depends=(qt6-base)
85   cd QScintilla_src-$pkgver/src
86   make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install
88   cd ../designer
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