aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-qt5/APKBUILD
blob: fd6d7e88ef70e7c08b370e7469782538c2659938 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-qt5
_pkgname=PyQt5
pkgver=5.13.0
pkgrel=2
pkgdesc="A set of Python 3 bindings for the Qt toolkit"
url="http://riverbankcomputing.co.uk/software/pyqt/intro"
arch="all"
license="GPL-2.0-or-later"
depends="python3 py3-sip-pyqt5"
makedepends="python3-dev py-dbus-dev py-sip-dev
	qt5-qtbase-dev libx11-dev qt5-qtsvg-dev qt5-qtwebsockets-dev
	py3-opengl qt5-qtconnectivity-dev qt5-qtmultimedia-dev qt5-qttools-dev
	qt5-qtserialport-dev qt5-qtx11extras-dev qt5-qtdeclarative-dev
	qt5-qtwebchannel-dev
	"
source="https://www.riverbankcomputing.com/static/Downloads/PyQt5/$pkgver/PyQt5_gpl-$pkgver.tar.gz"
builddir="${srcdir}/${_pkgname}_gpl-${pkgver}"

prepare() {
	default_prepare
	sed -i '/target_config.dbus_inc_dirs = \[\]/d' configure.py
}

build() {
	python3 configure.py \
		--confirm-license \
		--qmake /usr/lib/qt5/bin/qmake \
		--sip /usr/bin/sip \
		--sipdir /usr/share/sip/PyQt5 \
		--qsci-api
	find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'
	make
}

check() {
	make check
}

package() {
	make -j1 DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
}

sha512sums="72cdd700956f8a5791fd38cac6a348f189eec9e69f3fd79a0c711ff49c770d4982fe62ec9057830d26abc4c12133922df915be0844449212f0bdf338fe1e4cb0  PyQt5_gpl-5.13.0.tar.gz"