# Maintainer: Natanael Copa pkgname=qt5-qtdeclarative pkgver=5.5.1 _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" _qt5_prefix=/usr/lib/qt5 _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-qt5 && make || return 1 } package() { cd "$_builddir" make install INSTALL_ROOT="$pkgdir" || return 1 mkdir -p "$pkgdir"/usr/bin/ for i in "$pkgdir"/$_qt5_prefix/bin/*; do ln -s ../lib/qt5/bin/${i##*/} "$pkgdir"/usr/bin/${i##*/}-qt5 || return 1 done } md5sums="b7997c9d8df4ea60945229883f9ce8ed qtdeclarative-opensource-src-5.5.1.tar.xz" sha256sums="5fd14eefb83fff36fb17681693a70868f6aaf6138603d799c16466a094b26791 qtdeclarative-opensource-src-5.5.1.tar.xz" sha512sums="e8c25eeaca66cfb8b8bd014487ad81b8b9780e2f3e898b967d0923dbb40b54cd32c35859b7419e964319401995c27a229ed0ec9d1ec6d2aba84002b59abefddf qtdeclarative-opensource-src-5.5.1.tar.xz"