# Contributor: Francesco Colista # Maintainer: Bart Ribbers pkgname=qt5-qtquickcontrols2 pkgver=5.15.3_git20201110 pkgrel=0 _commit="a2593ff9cf5d0af885c20c2e9f9faa6ca4f1c1a3" pkgdesc="Qt5 - module with set of QtQuick controls for embedded" 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" depends="qt5-qtgraphicaleffects" makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev" subpackages="$pkgname-dev" options="!check" # No tests builddir="$srcdir/qtquickcontrols2-$_commit" case $pkgver in *_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="https://invent.kde.org/qt/qt/qtquickcontrols2/-/archive/$_commit/qtquickcontrols2-$_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 } 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="915b873850d042580c3de1641d916f778da89f4b0dd7763254891fb48c99daece1c1c6888f9f8560d73617edce41e7ef4e712af965f12d29179a0bc70627556b qtquickcontrols2-a2593ff9cf5d0af885c20c2e9f9faa6ca4f1c1a3.tar.gz"