summaryrefslogtreecommitdiffstats
path: root/testing/py-qt/APKBUILD
blob: c5224844b593502b89140c79eb75e8553f0dbb7d (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=py-qt
_pkgname=PyQt
pkgver=4.10.3
pkgrel=0
pkgdesc="A set of Python bindings for the Qt toolkit"
url="http://riverbankcomputing.co.uk/software/pyqt/intro"
arch="all"
license="GPL2+"
depends="py-sip"
depends_dev="python-dev py-dbus-dev phonon-dev qt-dev py-sip-dev libx11-dev"
makedepends="$depends_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"
	python 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="8b13d2ab64e4d2fd0037b81b7e78c15c  PyQt-x11-gpl-4.10.3.tar.gz"
sha256sums="a713bebef394213b2c9e1fe0cad5699b869dc356bba50766e069013eba8bf630  PyQt-x11-gpl-4.10.3.tar.gz"
sha512sums="4edd3539e1855bc3358dcba866433e53d4b9444b867c14cc27115cf5a6c123b0af3bb0bae3085f6d71a31f0b6716da40809ac4ffcaaff415673ed7462f1a0420  PyQt-x11-gpl-4.10.3.tar.gz"