# Maintainer: pkgname=qt5-qtquickcontrols pkgver=5.4.1 _ver=${pkgver/_/-} _ver=${_ver/beta0/beta} _ver=${_ver/rc0/rc} _V=${_ver/rc/RC} pkgrel=1 pkgdesc="Qt5 - module with set of QtQuick controls" url="http://qt-project.org/" arch="all" license="BSD and (LGPLv2 with exceptions or GPLv3 with exceptions) and GFDL" depends="" depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev" makedepends="$depends_dev" install="" subpackages="" case $pkgver in *_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtquickcontrols-opensource-src-$_V.tar.xz" _builddir="$srcdir"/qtquickcontrols-opensource-src-$_V prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" qmake-qt5 && make || return 1 } package() { cd "$_builddir" make install INSTALL_ROOT="$pkgdir" || return 1 } md5sums="2950c8df9da1e3d418a1e209d24f503a qtquickcontrols-opensource-src-5.4.1.tar.xz" sha256sums="fe0852c510b7ab9111310d6880d1b1f34908274099aefa5a14316173b25cfbc2 qtquickcontrols-opensource-src-5.4.1.tar.xz" sha512sums="906efc43614bb5117d65b361e1a1b9eeef40f430fbc96220ac6e161cc65e3996e6d942ea675bf2a4fc25eff8a064bd45c4e23bec36915c8c3b5b49a312a30eba qtquickcontrols-opensource-src-5.4.1.tar.xz"