summaryrefslogtreecommitdiff
path: root/testing/py-qt/APKBUILD
blob: 9d82e3eae0f875f33f3718c507e538fdf182b600 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-qt
_pkgname=PyQt
pkgver=4.11.4
pkgrel=1
pkgdesc="A set of Python 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="python2-dev py-dbus-dev phonon-dev qt-dev py-sip-dev libx11-dev"
subpackages=""
install=""
source="http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-$pkgver/PyQt-x11-gpl-$pkgver.tar.gz"

_builddir="${srcdir}/PyQt-x11-gpl-${pkgver}"
build() {
	cd "$_builddir"
	python2 configure.py \
		--confirm-license \
		-v /usr/share/sip \
		--qsci-api
	# Thanks Gerardo for the rpath fix
	find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'
	make || return 1
}

package(){
	cd "$_builddir"
	make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install || return 1
}

md5sums="2fe8265b2ae2fc593241c2c84d09d481  PyQt-x11-gpl-4.11.4.tar.gz"
sha256sums="fc1fe77495432ba3b0d74ff5cb164d375a97f5dddb728256330f615a7cdcf407  PyQt-x11-gpl-4.11.4.tar.gz"
sha512sums="58d0c5e30b0480c1b6ce1a3cc3ef0a1841bb15631830fb937d1f17f5d3d8cbe66a5e2adcfb2c3990fae38db66dd430668bd25413e254e72064a38c48f689f170  PyQt-x11-gpl-4.11.4.tar.gz"