# Maintainer: Natanael Copa pkgname=qt5-qtdeclarative pkgver=5.3.0 _ver=${pkgver/_/-} _ver=${_ver/beta0/beta} _ver=${_ver/rc0/rc} _V=${_ver/rc/RC} pkgrel=0 pkgdesc="Qt5 - QtDeclarative component" url="http://qt-project.org/" arch="all" license="LGPLv2 with exceptions or GPLv3 with exceptions" depends="" depends_dev="" makedepends="$depends_dev qt5-qtbase-dev" install="" subpackages="$pkgname-dev" case $pkgver in *_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtdeclarative-opensource-src-$_V.tar.xz" _builddir="$srcdir"/qtdeclarative-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 rm "$pkgdir"/usr/lib/*.la || return 1 } md5sums="9e29d2b481c771ce5c798a3319835673 qtdeclarative-opensource-src-5.3.0.tar.xz" sha256sums="fab07eb4f4b2091e1d88b27b84ac49d7e8daaa1eb72fd62e602ee9ac3ed7f42f qtdeclarative-opensource-src-5.3.0.tar.xz" sha512sums="80adbd12a3de1e3cbdd21067b2d1345fc0f018643f5992275399afed0fac1d84e2bddf07c2e5323d22380969c92983142d7caa72f114a214d2b1afafa39e9262 qtdeclarative-opensource-src-5.3.0.tar.xz"