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

                                                                                   
                                                  
                                           
 
               

                                                  

    








                                                                                                        
 
         

                 

 
         
                  


           







                                                                                

 
                                                                                                                                                                                                              
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt5-qtquickcontrols
pkgver=5.15.3_git20201110
pkgrel=0
_commit="cf3f6d7fec824cdf01f9b329ab3b92b1c0e0a420"
pkgdesc="Qt5 - module with set of QtQuick controls"
url="https://www.qt.io/developers/"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0"
makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev"
builddir="$srcdir/qtquickcontrols-$_commit"

case $pkgver in
	*_beta*|*_rc*) _rel=development_releases;;
	*) _rel=official_releases;;
esac

source="https://invent.kde.org/qt/qt/qtquickcontrols/-/archive/$_commit/qtquickcontrols-$_commit.tar.gz"

prepare() {
	default_prepare

	# We need to make the build system think we're running in a git repository
	# so it correctly symlinks during the build
	mkdir .git
}

build() {
	qmake-qt5
	make
}

check() {
	make check
}

package() {
	make INSTALL_ROOT="$pkgdir" install

	# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
	find "$pkgdir/usr/lib" -type f -name '*.prl' \
		-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;

	install -d "$pkgdir"/usr/share/licenses
	ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname
}

sha512sums="ca2d02bf01234a55ac22ff4fc5c1250d262acd7da273c796b192806b83ada57e94c8eb0eca68a1f9e491ac450f5bf6e6083fece9881883a92bffea1c9c6ce1fc  qtquickcontrols-cf3f6d7fec824cdf01f9b329ab3b92b1c0e0a420.tar.gz"