APKBUILD 1.41 KB
Newer Older
Francesco Colista's avatar
Francesco Colista committed
1 2 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-qt5
4
_pkgname=PyQt5
Leo's avatar
Leo committed
5
pkgver=5.13.1
6
pkgrel=1
Francesco Colista's avatar
Francesco Colista committed
7 8
pkgdesc="A set of Python 3 bindings for the Qt toolkit"
url="http://riverbankcomputing.co.uk/software/pyqt/intro"
9
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
10
license="GPL-2.0-or-later"
11
depends="python3 py3-sip-pyqt5"
12
makedepends="python3-dev py-dbus-dev py-sip-dev
13
	qt5-qtbase-dev libx11-dev qt5-qtsvg-dev qt5-qtwebsockets-dev
Leo's avatar
Leo committed
14
	py3-opengl qt5-qtconnectivity-dev qt5-qtmultimedia-dev qt5-qttools-dev
15
	qt5-qtserialport-dev qt5-qtx11extras-dev qt5-qtdeclarative-dev
16
	qt5-qtwebchannel-dev
17
	"
18
source="https://www.riverbankcomputing.com/static/Downloads/PyQt5/$pkgver/PyQt5_gpl-$pkgver.tar.gz"
Leo's avatar
Leo committed
19
builddir="$srcdir/${_pkgname}_gpl-$pkgver"
20

21 22 23
prepare() {
	default_prepare
	sed -i '/target_config.dbus_inc_dirs = \[\]/d' configure.py
24
}
Francesco Colista's avatar
Francesco Colista committed
25 26

build() {
27 28 29
	python3 configure.py \
		--confirm-license \
		--qmake /usr/lib/qt5/bin/qmake \
30
		--sip /usr/bin/sip \
31
		--sipdir /usr/share/sip/PyQt5 \
32
		--qsci-api
33
	find . -name 'Makefile' -print0 | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'
34 35 36 37
	make
}

check() {
38
	make check
Francesco Colista's avatar
Francesco Colista committed
39 40
}

41
package() {
Leo's avatar
Leo committed
42
	make -j1 DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install
Francesco Colista's avatar
Francesco Colista committed
43 44
}

Leo's avatar
Leo committed
45
sha512sums="7b7001b16a8c730d7ff2d340fa1dd118868b53519e8f75e8c2ce00b44e3637ac6a31b41a7456fc610df11ff3928b924cb54c0c3712f22ed4df5058fd8bc77281  PyQt5_gpl-5.13.1.tar.gz"