2022-03-07 10:50:48 +01:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
|
|
|
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
|
|
# you also find the URL of a binary repository.
|
|
|
|
|
|
|
|
pkgname=static-compat-qt6-translations
|
2024-02-15 16:48:07 +01:00
|
|
|
_qtver=6.6.2
|
2022-03-07 10:50:48 +01:00
|
|
|
pkgver=${_qtver/-/}
|
|
|
|
pkgrel=1
|
|
|
|
arch=(any)
|
|
|
|
url='https://www.qt.io'
|
|
|
|
license=(GPL3 LGPL3 FDL custom)
|
|
|
|
pkgdesc='A cross-platform application and UI framework (Translations)'
|
|
|
|
depends=(static-compat-qt6-base)
|
|
|
|
makedepends=(static-compat-cmake static-compat-qt6-tools ninja)
|
|
|
|
options=('!strip' '!buildflags' 'staticlibs' '!emptydirs')
|
|
|
|
_pkgfqn="qttranslations-everywhere-src-${_qtver}"
|
|
|
|
source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz")
|
2024-02-15 16:48:07 +01:00
|
|
|
sha256sums=('ca3ac090ef3aa12566c26b482c106f1f986c5a3444e7003f379726a550530c77')
|
2022-03-07 10:50:48 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
check_buildoption ccache y && ccache_args='
|
|
|
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache
|
|
|
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache'
|
|
|
|
source static-compat-environment
|
|
|
|
export PATH=$PWD:$PATH
|
|
|
|
printf '#!/usr/bin/bash\nexec /usr/bin/pkg-config --static "$@"\n' > pkg-config
|
|
|
|
chmod +x pkg-config
|
|
|
|
static-compat-cmake -G Ninja -B build -S $_pkgfqn \
|
|
|
|
$ccache_args \
|
|
|
|
-DCMAKE_SKIP_INSTALL_RPATH=ON \
|
|
|
|
-DGLIB2_USE_PKG_CONFIG=ON \
|
2022-05-01 23:29:10 +02:00
|
|
|
-DWAYLAND_USE_PKG_CONFIG=ON \
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_harfbuzz=TRUE \
|
2022-03-07 10:50:48 +01:00
|
|
|
-DQT_FEATURE_static_runtime=ON \
|
|
|
|
-DFEATURE_pkg_config=ON
|
|
|
|
VERBOSE=1 cmake --build build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
source static-compat-environment
|
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
|
|
|
|
install -d "$pkgdir"/usr/share/licenses
|
|
|
|
ln -s /usr/share/licenses/static-compat-qt6-base "$pkgdir"/usr/share/licenses/$pkgname
|
|
|
|
}
|