aboutsummaryrefslogblamecommitdiffstats
path: root/community/py3-qt5/APKBUILD
blob: 0e251da75736df051685995337a58f9b234bf9a0 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                           
             
        

                                                         
                                                      
                 
                               
                                                
                                                                    
                                                                              
                                                                      
                            
         

                                                                             
 

                       
                                                                   
 
 
         


                                                
                                    
                                               
                          
                                                                                                     



            
                  

 
           
                                                                 

 
                                                                                                                                                                  
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-qt5
pkgver=5.15.2
pkgrel=0
pkgdesc="A set of Python 3 bindings for the Qt toolkit"
url="http://riverbankcomputing.co.uk/software/pyqt/intro"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
license="GPL-3.0"
depends="python3 py3-sip-pyqt5"
makedepends="python3-dev py3-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://pypi.python.org/packages/source/P/PyQt5/PyQt5-$pkgver.tar.gz"
builddir="$srcdir/PyQt5-$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' -print0 | 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="6d48d2ed907b436131d46b0513d82e1069c76e873d395e4a6c0832ae3a20621b92d3abece046c5fcd14cb818d50ffb369153fca1ce9341f0db1b8c479b94e621  PyQt5-5.15.2.tar.gz"