# Maintainer: Bart Ribbers pkgname=qt6-qttranslations pkgver=6.5.2 pkgrel=0 pkgdesc="A cross-platform application and UI framework (Translations)" url="https://qt.io/" arch="noarch" license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0" makedepends=" cmake perl qt6-qtbase-dev qt6-qttools-dev samurai " builddir="$srcdir/qttranslations-everywhere-src-${pkgver/_/-}" options="!check" # No tests case $pkgver in *_alpha*|*_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="https://download.qt.io/$_rel/qt/${pkgver%.*}/${pkgver/_/-}/submodules/qttranslations-everywhere-src-${pkgver/_/-}.tar.xz" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr # -j1 to prevent race conditions and missing translation files cmake --build build -j1 } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 2930153207a6ba7bb6720171f2be1c845e84edef87abd5ec6a4464c4386fb58fbdd59740c210727eb6b058ceffcaaf0aaea99e968215b68b121eb35d6e4f05c2 qttranslations-everywhere-src-6.5.2.tar.xz "