# Maintainer: Natanael Copa pkgname=qt5-qttranslations pkgver=5.4.2 pkgrel=0 pkgdesc="Qt5 - QtTranslations module" url="http://qt-project.org/" arch="noarch" license="LGPLv2 with exceptions or GPLv3 with exceptions and GFDL" depends="" depends_dev="" makedepends="$depends_dev qt5-qttools-dev" install="" subpackages="" _ver=${pkgver/_/-} _ver=${_ver/beta0/beta} _ver=${_ver/rc0/rc} _V=${_ver/rc/RC} case $pkgver in *_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qttranslations-opensource-src-$_V.tar.xz" _builddir="$srcdir"/qttranslations-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="35151a736e3b720de4f5128386f9c834 qttranslations-opensource-src-5.4.2.tar.xz" sha256sums="9ab6ddb730b1862781991b4ccf53ceaa3f21e9f8bf1c5c49930f7d135832942c qttranslations-opensource-src-5.4.2.tar.xz" sha512sums="550e0fcea83155fd4e7e483c92c53f18c733f2fa6c5f179957e0c9f25692acb08975be63fd70974bfe3db7c2efd069e5e915410a8bc34870a26628ce4f99f021 qttranslations-opensource-src-5.4.2.tar.xz"