Add mingw-w64-qt6 packages for some of my projects

Basically works, tested under the latest Windows 10

TODOs:
* The CLI-only syncthingctl is quite big, maybe some dependencies got
  pulled into the build, e.g. through plugins
* Translations are not working because the CMake module providing the
  macros is not available in the mingw-w64 build of Qt 6
This commit is contained in:
Martchus 2020-12-10 22:15:10 +01:00
parent 884c9b52c6
commit dda08c381c
5 changed files with 464 additions and 4 deletions

View File

@ -0,0 +1,92 @@
# 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.
_reponame=passwordmanager
pkgname=mingw-w64-passwordmanager-qt6
_name=${pkgname#mingw-w64-}
pkgver=4.1.6
pkgrel=1
arch=('any')
pkgdesc='A simple password store using AES-256-CBC encryption via OpenSSL (mingw-w64)'
license=('GPL')
depends=('mingw-w64-crt' 'mingw-w64-qt6-base' 'mingw-w64-qtutilities-qt6' 'mingw-w64-passwordfile' 'mingw-w64-openssl')
makedepends=('mingw-w64-gcc' 'mingw-w64-cmake' 'mingw-w64-qt6-tools' 'qt6-tools' 'clang' 'ffmpeg' 'ninja')
url="https://github.com/Martchus/${_reponame}"
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
sha256sums=('2498867bb85e267202cd8d0e665f9675456072882d43c5aba22219474ccfa008')
options=(!buildflags staticlibs !strip !emptydirs)
_architectures=('i686-w64-mingw32' 'x86_64-w64-mingw32')
_configurations=()
[[ $NO_SHARED_LIBS ]] || _configurations+=('shared')
[[ $NO_STATIC_LIBS ]] || _configurations+=('static') makedepends+=('mingw-w64-cmake-static' 'mingw-w64-qt6-base-static' 'mingw-w64-qt6-translations' 'mingw-w64-qt6-svg-static' 'breeze-icons' 'numix-icon-theme-git')
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
declare -A _config_flags=(
[shared]='
-DBUILD_SHARED_LIBS:BOOL=ON
'
[static]='
-DBUILD_SHARED_LIBS:BOOL=OFF
-DCMAKE_FIND_LIBRARY_SUFFIXES:STRING=.a;.lib
-DSTATIC_LINKAGE:BOOL=ON
-DSTATIC_LIBRARY_LINKAGE:BOOL=ON
-DPASSWORD_MANAGER_CONFIGURATION_TARGET_SUFFIX:STRING=qt6-static
-DBUILTIN_TRANSLATIONS:BOOL=ON
-DBUILTIN_ICON_THEMES:STRING=breeze;breeze-dark;Numix
-DIMAGE_FORMAT_SUPPORT:STRING=Gif;ICO;Jpeg
-DSVG_SUPPORT:BOOL=ON
-DSVG_ICON_SUPPORT:BOOL=0N
'
)
declare -A _cfg_suffix=(
[static]='-static'
)
for _arch in "${_architectures[@]}"; do
for _cfg in "${_configurations[@]}"; do
msg2 "${_arch}-${_cfg}"
mkdir -p "build-${_arch}-${_cfg}" && pushd "build-${_arch}-${_cfg}"
${_arch}-cmake${_cfg_suffix[$_cfg]} \
-G Ninja \
-DCMAKE_BUILD_TYPE:STRING='Release' \
-DCMAKE_INSTALL_PREFIX="/usr/${_arch}" \
-DCONFIGURATION_NAME:STRING="${_cfg}-qt6" \
-DCONFIGURATION_DISPLAY_NAME="Qt 6" \
-DCONFIGURATION_PACKAGE_SUFFIX:STRING="-${_cfg}" \
-DCONFIGURATION_PACKAGE_SUFFIX_QTUTILITIES:STRING="-${_cfg}-qt6" \
-DCONFIGURATION_TARGET_SUFFIX:STRING="qt6" \
-DPASSWORD_MANAGER_CONFIGURATION_TARGET_SUFFIX:STRING="qt6${_cfg_suffix[$_cfg]}" \
-DQT_PACKAGE_PREFIX:STRING=Qt6 \
-DKF_PACKAGE_PREFIX:STRING=KF6 \
-DENABLE_TARGETS_FOR_MINGW64_CROSS_PACKAGING:BOOL=ON \
-DQUICK_GUI:BOOL=OFF \
-DENABLE_QT_TRANSLATIONS:BOOL=OFF \
${_config_flags[$_cfg]} \
../
VERBOSE=1 ninja
popd
done
done
}
package() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
install \
-D --target-directory="$pkgdir/usr/share/licenses/$pkgname" \
LICENSES-windows-distribution.md
for _arch in "${_architectures[@]}"; do
for _cfg in "${_configurations[@]}"; do
msg2 "${_arch}-${_cfg}"
pushd "build-${_arch}-${_cfg}"
DESTDIR="${pkgdir}" ninja install-mingw-w64-strip
popd
done
done
}

View File

@ -11,8 +11,7 @@ pkgrel=1
arch=('any')
pkgdesc='A simple password store using AES-256-CBC encryption via OpenSSL (mingw-w64)'
license=('GPL')
depends=('mingw-w64-crt' 'mingw-w64-qt5-base' 'mingw-w64-qtutilities' 'mingw-w64-passwordfile' 'mingw-w64-openssl'
'mingw-w64-kirigami2')
depends=('mingw-w64-crt' 'mingw-w64-qt5-base' 'mingw-w64-qtutilities' 'mingw-w64-passwordfile' 'mingw-w64-openssl')
makedepends=('mingw-w64-gcc' 'mingw-w64-cmake' 'mingw-w64-qt5-tools' 'ffmpeg' 'ninja')
url="https://github.com/Martchus/${_reponame}"
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
@ -21,7 +20,7 @@ options=(!buildflags staticlibs !strip !emptydirs)
_architectures=('i686-w64-mingw32' 'x86_64-w64-mingw32')
_configurations=()
[[ $NO_SHARED_LIBS ]] || _configurations+=('shared')
[[ $NO_SHARED_LIBS ]] || _configurations+=('shared') depends+=('mingw-w64-kirigami2')
[[ $NO_STATIC_LIBS ]] || _configurations+=('static') makedepends+=('mingw-w64-qt5-base-static' 'mingw-w64-qt5-translations' 'mingw-w64-qt5-svg-static' 'breeze-icons' 'numix-icon-theme-git')
build() {
@ -30,7 +29,7 @@ build() {
declare -A _config_flags=(
[shared]='
-DBUILD_SHARED_LIBS:BOOL=ON
-DQUICK_GUI:BOOL=ON
-DQUICK_GUI:BOOL=ON
'
[static]='
-DBUILD_SHARED_LIBS:BOOL=OFF

View File

@ -0,0 +1,109 @@
# 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.
_reponame=qtutilities
pkgname=mingw-w64-qtutilities-qt6
_name=${pkgname#mingw-w64-}
pkgver=6.3.2
pkgrel=1
arch=('any')
pkgdesc='Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models (mingw-w64)'
license=('GPL')
depends=('mingw-w64-crt' 'mingw-w64-qt6-base' 'mingw-w64-c++utilities')
optdepends=("$_name-doc: API documentation")
checkdepends=('mingw-w64-wine')
makedepends=('mingw-w64-gcc' 'mingw-w64-cmake' 'mingw-w64-qt6-tools' 'qt6-base' 'qt6-tools' 'clang' 'ninja')
url="https://github.com/Martchus/${_reponame}"
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz"
'Disable-auto-inclusion-of-QML-plugins.patch::https://github.com/Martchus/qtutilities/commit/7183ec501c90bfc38538fd7a810533b8a8a78cff.patch')
sha256sums=('c367a445f6d8e273787e733f8701ebea001f9dea1fb1e317580e976a48b42df1'
'SKIP')
options=(!buildflags staticlibs !strip !emptydirs)
_architectures=('i686-w64-mingw32' 'x86_64-w64-mingw32')
_configurations=()
[[ $NO_SHARED_LIBS ]] || _configurations+=('shared')
[[ $NO_STATIC_LIBS ]] || _configurations+=('static') makedepends+=('mingw-w64-cmake-static' 'mingw-w64-qt6-base-static')
prepare () {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
# apply patches; further descriptions can be found in patch files itself
for patch in "$srcdir/"*.patch; do
msg2 "Applying patch $patch"
patch -p1 -i "$patch"
done
}
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
declare -A _config_flags=(
[shared]='
-DBUILD_SHARED_LIBS:BOOL=ON
'
[static]='
-DBUILD_SHARED_LIBS:BOOL=OFF
-DCMAKE_FIND_LIBRARY_SUFFIXES:STRING=.a;.lib
-DSTATIC_LINKAGE:BOOL=ON
-DSTATIC_LIBRARY_LINKAGE:BOOL=ON
-DBUILTIN_TRANSLATIONS:BOOL=ON
'
)
declare -A _cfg_suffix=(
[static]='-static'
)
for _arch in "${_architectures[@]}"; do
for _cfg in "${_configurations[@]}"; do
msg2 "${_arch}-${_cfg}"
mkdir -p "build-${_arch}-${_cfg}" && pushd "build-${_arch}-${_cfg}"
${_arch}-cmake${_cfg_suffix[$_cfg]} \
-G Ninja \
-DCMAKE_BUILD_TYPE:STRING='Release' \
-DCMAKE_INSTALL_PREFIX="/usr/${_arch}" \
-DCONFIGURATION_NAME:STRING="${_cfg}-qt6" \
-DCONFIGURATION_DISPLAY_NAME="Qt 6" \
-DCONFIGURATION_PACKAGE_SUFFIX:STRING="-${_cfg}" \
-DCONFIGURATION_TARGET_SUFFIX:STRING="qt6" \
-DQT_PACKAGE_PREFIX:STRING=Qt6 \
-DKF_PACKAGE_PREFIX:STRING=KF6 \
-DENABLE_TARGETS_FOR_MINGW64_CROSS_PACKAGING:BOOL=ON \
-DENABLE_QT_TRANSLATIONS:BOOL=OFF \
${_config_flags[$_cfg]} \
../
VERBOSE=1 ninja
popd
done
done
}
check() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
for _arch in "${_architectures[@]}"; do
for _cfg in "${_configurations[@]}"; do
msg2 "${_arch}-${_cfg}"
pushd "build-${_arch}-${_cfg}"
export WINEPATH="/usr/${_arch}/bin" WINEDEBUG=-all
export QT_QPA_PLATFORM=offscreen
[[ $_cfg == shared ]] && ninja tests
popd
done
done
}
package() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
for _arch in "${_architectures[@]}"; do
for _cfg in "${_configurations[@]}"; do
msg2 "${_arch}-${_cfg}"
pushd "build-${_arch}-${_cfg}"
DESTDIR="${pkgdir}" ninja install-mingw-w64-strip
popd
done
done
}

View File

@ -0,0 +1,139 @@
# 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.
# set the web view provider: either webkit, webengine, auto or none
_webview_provider=${MINGW_W64_SYNCTHING_TRAY_WEBVIEW_PROVIDER:-none}
# set the JavaScript provider: either script, qml, auto or none
_js_provider=${MINGW_W64_SYNCTHING_TRAY_JS_PROVIDER:-qml}
# set whether libsyncthing should be enabled: either ON or OFF
_enable_libsyncthing=${MINGW_W64_SYNCTHING_TRAY_JS_PROVIDER:-ON}
_reponame=syncthingtray
pkgname=mingw-w64-syncthingtray-qt6
_name=${pkgname#mingw-w64-}
pkgver=1.1.0
pkgrel=1
arch=('any')
pkgdesc='Tray application for Syncthing (mingw-w64)'
license=('GPL')
depends=('mingw-w64-crt' 'mingw-w64-qt6-svg' 'mingw-w64-qtutilities-qt6' 'mingw-w64-openssl')
[[ $_webview_provider == none ]] && depends+=('mingw-w64-qt6-base')
[[ $_webview_provider == webkit ]] && depends+=('mingw-w64-qt6-webkit')
[[ $_webview_provider == webengine ]] && depends+=('mingw-w64-qt6-webengine')
[[ $_js_provider == script ]] && depends+=('mingw-w64-qt6-script')
[[ $_js_provider == qml ]] && depends+=('mingw-w64-qt6-declarative' 'qt6-declarative')
makedepends=('mingw-w64-gcc' 'mingw-w64-cmake' 'mingw-w64-qt6-tools' 'qt6-tools' 'clang' 'ffmpeg' 'ninja')
[[ $_enable_libsyncthing == ON ]] && makedepends+=('git' 'go')
url="https://github.com/Martchus/${_reponame}"
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
[[ $_enable_libsyncthing == ON ]] && source+=("syncthing::git+https://github.com/Martchus/syncthing.git#branch=libsyncthing-latest")
sha256sums=('730301d51744c7c54a393b06a3a02cd93d2275d8864d8a2dc84a86afc901756f'
'SKIP')
options=(!buildflags staticlibs !strip !emptydirs)
_architectures=('i686-w64-mingw32' 'x86_64-w64-mingw32')
_configurations=()
if ! [[ $NO_SHARED_LIBS ]]; then
_configurations+=('shared')
fi
if ! [[ $NO_STATIC_LIBS ]]; then
_configurations+=('static')
makedepends+=('mingw-w64-cmake-static' 'mingw-w64-qt6-base-static' 'mingw-w64-qt6-svg-static' 'mingw-w64-qt6-translations' 'breeze-icons' 'numix-icon-theme-git')
[[ $_js_provider == script ]] && makedepends+=('mingw-w64-qt6-script-static')
[[ $_js_provider == qml ]] && makedepends+=('mingw-w64-qt6-declarative-static')
fi
[[ $_enable_libsyncthing == ON ]] && _disable_libsyncthing=OFF || _disable_libsyncthing=ON
prepare() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
# ensure path where the libsyncthing Git submodule would be cloned into exists
mkdir -p 'libsyncthing/go/src/github.com/syncthing'
pushd 'libsyncthing/go/src/github.com/syncthing'
# delete empty sub directory of the Git submodule present in the archive from GitHub
[[ -d syncthing ]] && rm -r syncthing
# link libsyncthing repo where the Git submodule would have been cloned into
ln -sf "$srcdir/syncthing" .
popd
}
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
declare -A _config_flags=(
[shared]="
-DBUILD_SHARED_LIBS:BOOL=ON
-DWEBVIEW_PROVIDER:STRING=${_webview_provider}
"
[static]='
-DBUILD_SHARED_LIBS:BOOL=OFF
-DCMAKE_FIND_LIBRARY_SUFFIXES:STRING=.a;.lib
-DSTATIC_LINKAGE:BOOL=ON
-DSTATIC_LIBRARY_LINKAGE:BOOL=ON
-DBUILTIN_TRANSLATIONS:BOOL=ON
-DBUILTIN_ICON_THEMES:STRING=breeze;breeze-dark;Numix
-DIMAGE_FORMAT_SUPPORT:STRING=Gif;ICO;Jpeg
-DSVG_SUPPORT:BOOL=ON
-DSVG_ICON_SUPPORT:BOOL=0N
-DWEBVIEW_PROVIDER:STRING=none
'
)
declare -A _cfg_suffix=(
[static]='-static'
)
for _arch in "${_architectures[@]}"; do
for _cfg in "${_configurations[@]}"; do
msg2 "${_arch}-${_cfg}"
mkdir -p "build-${_arch}-${_cfg}" && pushd "build-${_arch}-${_cfg}"
${_arch}-cmake${_cfg_suffix[$_cfg]} \
-G Ninja \
-DCMAKE_BUILD_TYPE:STRING='Release' \
-DCMAKE_INSTALL_PREFIX="/usr/${_arch}" \
-DCONFIGURATION_NAME:STRING="${_cfg}-qt6" \
-DCONFIGURATION_DISPLAY_NAME="Qt 6" \
-DCONFIGURATION_PACKAGE_SUFFIX:STRING="-${_cfg}" \
-DCONFIGURATION_PACKAGE_SUFFIX_QTUTILITIES:STRING="-${_cfg}-qt6" \
-DCONFIGURATION_TARGET_SUFFIX:STRING="qt6" \
-DSYNCTHINGCTL_CONFIGURATION_TARGET_SUFFIX:STRING="qt6${_cfg_suffix[$_cfg]}" \
-DSYNCTHINGTRAY_CONFIGURATION_TARGET_SUFFIX:STRING="qt6${_cfg_suffix[$_cfg]}" \
-DQT_PACKAGE_PREFIX:STRING=Qt6 \
-DKF_PACKAGE_PREFIX:STRING=KF6 \
-DJS_PROVIDER:STRING="${_js_provider}" \
-DSYSTEMD_SUPPORT=OFF \
-DNO_FILE_ITEM_ACTION_PLUGIN=ON \
-DENABLE_TARGETS_FOR_MINGW64_CROSS_PACKAGING:BOOL=ON \
-DNO_LIBSYNCTHING:BOOL="${_disable_libsyncthing}" \
-DUSE_LIBSYNCTHING:BOOL="${_enable_libsyncthing}" \
-DENABLE_QT_TRANSLATIONS:BOOL=OFF \
${_config_flags[$_cfg]} \
../
VERBOSE=1 ninja
popd
done
done
}
package() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
install \
-D --target-directory="$pkgdir/usr/share/licenses/$pkgname" \
LICENSES-windows-distribution.md
for _arch in "${_architectures[@]}"; do
for _cfg in "${_configurations[@]}"; do
msg2 "${_arch}-${_cfg}"
pushd "build-${_arch}-${_cfg}"
DESTDIR="${pkgdir}" ninja install-mingw-w64-strip
popd
done
done
}

View File

@ -0,0 +1,121 @@
# 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.
# set the web view provider: either webkit, webengine, auto or none
_webview_provider=${MINGW_64_TAGEDITOR_WEBVIEW_PROVIDER:-none}
# set the JavaScript provider: either script, qml, auto or none
_js_provider=${MINGW_64_TAGEDITOR_JS_PROVIDER:-qml}
# whether the experimental JSON export is enabled: ON or OFF
_json_export=${MINGW_64_TAGEDITOR_JSON_EXPORT:-ON}
_reponame=tageditor
pkgname=mingw-w64-tageditor-qt6
_name=${pkgname#mingw-w64-}
pkgver=3.3.10
pkgrel=1
arch=('any')
pkgdesc='A tag editor with Qt GUI and command-line interface supporting MP4/M4A/AAC (iTunes), ID3, Vorbis, Opus, FLAC and Matroska'
license=('GPL')
depends=('mingw-w64-crt' 'mingw-w64-qtutilities-qt6' 'mingw-w64-tagparser')
[[ $_webview_provider == none ]] && [[ $_js_provider == none ]] && depends+=('mingw-w64-qt6-base')
[[ $_webview_provider == webkit ]] && depends+=('mingw-w64-qt6-webkit')
[[ $_webview_provider == webengine ]] && depends+=('mingw-w64-qt6-webengine')
[[ $_js_provider == script ]] && depends+=('mingw-w64-qt6-script')
[[ $_js_provider == qml ]] && depends+=('mingw-w64-qt6-declarative' 'qt6-declarative')
makedepends=('mingw-w64-gcc' 'mingw-w64-cmake' 'mingw-w64-qt6-tools' 'qt6-tools' 'clang' 'ffmpeg' 'ninja')
[[ $_json_export == ON ]] && makedepends+=('mingw-w64-reflective-rapidjson')
url="https://github.com/Martchus/${_reponame}"
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
sha256sums=('0d720dcfce039c5dc85c0dcc0ce3daa0bd15835394c977da28b20a63e09f0d71')
options=(!buildflags staticlibs !strip !emptydirs)
_architectures=('i686-w64-mingw32' 'x86_64-w64-mingw32')
_configurations=()
if ! [[ $NO_SHARED_LIBS ]]; then
_configurations+=('shared')
fi
if ! [[ $NO_STATIC_LIBS ]]; then
_configurations+=('static')
makedepends+=('mingw-w64-cmake-static' 'mingw-w64-qt6-base-static' 'mingw-w64-qt6-svg-static' 'mingw-w64-qt6-translations' 'breeze-icons' 'numix-icon-theme-git')
[[ $_js_provider == script ]] && makedepends+=('mingw-w64-qt6-script-static')
[[ $_js_provider == qml ]] && makedepends+=('mingw-w64-qt6-declarative-static')
fi
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
declare -A _config_flags=(
[shared]="
-DBUILD_SHARED_LIBS:BOOL=ON
-DWEBVIEW_PROVIDER:STRING=${_webview_provider}
"
[static]='
-DBUILD_SHARED_LIBS:BOOL=OFF
-DCMAKE_FIND_LIBRARY_SUFFIXES:STRING=.a;.lib
-DSTATIC_LINKAGE:BOOL=ON
-DSTATIC_LIBRARY_LINKAGE:BOOL=ON
-DBUILTIN_TRANSLATIONS:BOOL=ON
-DBUILTIN_ICON_THEMES:STRING=breeze;breeze-dark;Numix
-DIMAGE_FORMAT_SUPPORT:STRING=Gif;ICO;Jpeg
-DSVG_SUPPORT:BOOL=ON
-DSVG_ICON_SUPPORT:BOOL=0N
-DWEBVIEW_PROVIDER:STRING=none
'
)
declare -A _cfg_suffix=(
[static]='-static'
)
for _arch in "${_architectures[@]}"; do
local gcc_version=$($_arch-gcc --version | grep "^$_arch-gcc" | sed 's/^.* //g')
for _cfg in "${_configurations[@]}"; do
msg2 "${_arch}-${_cfg}"
mkdir -p "build-${_arch}-${_cfg}" && pushd "build-${_arch}-${_cfg}"
${_arch}-cmake${_cfg_suffix[$_cfg]} \
-G Ninja \
-DCMAKE_BUILD_TYPE:STRING='Release' \
-DCMAKE_INSTALL_PREFIX="/usr/${_arch}" \
-DCONFIGURATION_NAME:STRING="${_cfg}-qt6" \
-DCONFIGURATION_DISPLAY_NAME="Qt 6" \
-DCONFIGURATION_PACKAGE_SUFFIX:STRING="-${_cfg}" \
-DCONFIGURATION_PACKAGE_SUFFIX_QTUTILITIES:STRING="-${_cfg}-qt6" \
-DCONFIGURATION_TARGET_SUFFIX:STRING="qt6" \
-DTAGEDITOR_CONFIGURATION_TARGET_SUFFIX:STRING="qt6${_cfg_suffix[$_cfg]}" \
-DQT_PACKAGE_PREFIX:STRING=Qt6 \
-DKF_PACKAGE_PREFIX:STRING=KF6 \
-DJS_PROVIDER:STRING="${_js_provider}" \
-DENABLE_JSON_EXPORT:BOOL="${_json_export}" \
-DREFLECTION_GENERATOR_EXECUTABLE:FILEPATH='/usr/bin/reflective_rapidjson_generator' \
-DREFLECTION_GENERATOR_TRIPLE:STRING="${_arch}" \
-DREFLECTION_GENERATOR_INCLUDE_DIRECTORIES="/usr/lib/gcc/${_arch}/${gcc_version}/include;/usr/${_arch}/include/c++/${gcc_version};/usr/${_arch}/include/c++/${gcc_version}/${_arch};/usr/${_arch}/include" \
-DENABLE_TARGETS_FOR_MINGW64_CROSS_PACKAGING:BOOL=ON \
-DENABLE_QT_TRANSLATIONS:BOOL=OFF \
${_config_flags[$_cfg]} \
../
VERBOSE=1 ninja
popd
done
done
}
package() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
install \
-D --target-directory="$pkgdir/usr/share/licenses/$pkgname" \
LICENSES-windows-distribution.md
for _arch in "${_architectures[@]}"; do
for _cfg in "${_configurations[@]}"; do
msg2 "${_arch}-${_cfg}"
pushd "build-${_arch}-${_cfg}"
DESTDIR="${pkgdir}" ninja install-mingw-w64-strip
popd
done
done
}