# Maintainer: pkgname=qt5-qtquickcontrols pkgver=5.3.0 _ver=${pkgver/_/-} _ver=${_ver/beta0/beta} _ver=${_ver/rc0/rc} _V=${_ver/rc/RC} pkgrel=0 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 && make || return 1 } package() { cd "$_builddir" make install INSTALL_ROOT="$pkgdir" || return 1 } md5sums="808b5a28f152f1af19dad30a10e5dbf1 qtquickcontrols-opensource-src-5.3.0.tar.xz" sha256sums="b8df0d64b69e765971fd6c71d8f0c4f7aabec73343a98225a4655a0b8b82df1c qtquickcontrols-opensource-src-5.3.0.tar.xz" sha512sums="b427e551635ba4b24910cdc3f445e0ea3d829beab21014b34ba5c816ee0f48ebc727339ec06a68e3311b65969de5e1e257ce901758211d157f80dafc0f3cbe33 qtquickcontrols-opensource-src-5.3.0.tar.xz"