aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-qt5/APKBUILD
blob: cd2d3fcc5b6a0c2faa5906e84221dcb0a13e400d (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-qt5
_pkgname=PyQt5
pkgver=5.10
pkgrel=0
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="py-sip"
makedepends="python3-dev py-dbus-dev py-sip-dev
	qt5-qtbase-dev libx11-dev qt5-qtsvg-dev qt5-websockets-dev"
source="https://sourceforge.net/projects/pyqt/files/$_pkgname/PyQt-$pkgver/${_pkgname}_gpl-$pkgver.zip"
builddir="${srcdir}/${_pkgname}_gpl-${pkgver}"

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

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

check() {
    cd "$builddir"
    make check
}

package(){
	cd "$builddir"
	make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
}

sha512sums="32897291717df734ac6e0992f23e3ab2104708c10240cc824586f9622c1d0bdc0fb240569826ffa38ed2f3357dec216e6a0b9d6241b64e97cc3226807378ac91  PyQt5_gpl-5.10.zip"