summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f763c0c5840ad0acc1f99cb8df90c673e589cbec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

pkgname=python-pyqt6-pre-release
pkgdesc='A set of Python bindings for the Qt6 toolkit'
pkgver=6.7.0.dev2402181254
pkgrel=1
arch=(x86_64)
url='https://riverbankcomputing.com/software/pyqt/intro'
license=(GPL)
depends=(qt6-base python-pyqt6-sip)
conflicts=(python-pyqt6)
provides=(python-pyqt6)
optdepends=('qt6-tools: QtHelp, QtDesigner bindings'
            'qt6-svg: QtSvg bindings'
            'qt6-declarative: QtQml bindings, qmlplugin'
            'qt6-quick3d: QtQuick3D bindings'
            'qt6-connectivity: QtBluetooth, QtNfc bindings'
            'qt6-multimedia: QtMultimedia, QtSpatialAudio bindings'
            'qt6-positioning: QtPositioning bindings'
            'qt6-remoteobjects: QtRemoteObjects bindings'
            'qt6-sensors: QtSensors bindings'
            'qt6-serialport: QtSerialPort bindings'
            'qt6-speech: QtTextToSpeech bindings'
            'qt6-webchannel: QtWebChannel bindings'
            'qt6-webengine: QtPdf bindings'
            'qt6-websockets: QtWebSockets bindings'
            'dbus-python: for python-dbus mainloop support')
makedepends=(
    sip pyqt-builder python-opengl dbus-python
    qt6-tools qt6-svg qt6-declarative qt6-quick3d qt6-shadertools qt6-multimedia qt6-remoteobjects
    qt6-positioning qt6-sensors qt6-serialport qt6-webchannel qt6-websockets qt6-connectivity qt6-speech qt6-webengine
)
source=(https://www.riverbankcomputing.com/pypi/packages/PyQt6/PyQt6-${pkgver}.tar.gz)
md5sums=('SKIP')

build() {
    cd PyQt6-$pkgver
    sip-build \
        --confirm-license \
        --no-make \
        --qmake=/usr/bin/qmake6 \
        --api-dir /usr/share/qt6/qsci/api/python \
        --pep484-pyi \
        --jobs $(nproc)
    cd build
    make -j`nproc`
}

package(){
    cd PyQt6-$pkgver/build
    make INSTALL_ROOT="$pkgdir" install

    # compile Python bytecode
    python -m compileall -d / "$pkgdir"/usr/lib
    python -O -m compileall -d / "$pkgdir"/usr/lib
}