From 18e2a8a93f6b286b5a45c501f71be1a0b0cc3328 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 8 Oct 2020 17:50:23 +0200 Subject: [PATCH] Extend mingw-w64-qt6-* packaging --- devel/generator/generate.pl | 31 ++++---- .../layouts/mingw-w64-qt6-base.sh.ep | 22 ++++-- .../layouts/mingw-w64-qt6-module.sh.ep | 74 +++++++++++++++++++ qt6-base/mingw-w64/PKGBUILD | 17 +++-- qt6-declarative/mingw-w64/PKGBUILD | 58 +++++++++++++++ qt6-declarative/mingw-w64/PKGBUILD.sh.ep | 12 +++ .../mingw-w64/qtdeclarative-sha256.txt | 1 + qt6-svg/mingw-w64/PKGBUILD | 57 ++++++++++++++ qt6-svg/mingw-w64/PKGBUILD.sh.ep | 11 +++ qt6-svg/mingw-w64/qtsvg-sha256.txt | 1 + qt6-tools/mingw-w64/PKGBUILD | 57 ++++++++++++++ qt6-tools/mingw-w64/PKGBUILD.sh.ep | 11 +++ qt6-tools/mingw-w64/qttools-sha256.txt | 1 + 13 files changed, 327 insertions(+), 26 deletions(-) create mode 100644 devel/generator/templates/layouts/mingw-w64-qt6-module.sh.ep create mode 100644 qt6-declarative/mingw-w64/PKGBUILD create mode 100644 qt6-declarative/mingw-w64/PKGBUILD.sh.ep create mode 100644 qt6-declarative/mingw-w64/qtdeclarative-sha256.txt create mode 100644 qt6-svg/mingw-w64/PKGBUILD create mode 100644 qt6-svg/mingw-w64/PKGBUILD.sh.ep create mode 100644 qt6-svg/mingw-w64/qtsvg-sha256.txt create mode 100644 qt6-tools/mingw-w64/PKGBUILD create mode 100644 qt6-tools/mingw-w64/PKGBUILD.sh.ep create mode 100644 qt6-tools/mingw-w64/qttools-sha256.txt diff --git a/devel/generator/generate.pl b/devel/generator/generate.pl index 49cb2a31..1a264d01 100755 --- a/devel/generator/generate.pl +++ b/devel/generator/generate.pl @@ -41,20 +41,23 @@ unless (-d $install_directory) { exit(-1); } -# add helper to render qt5 dependencies -$mojolicious->helper(qt5deps => sub { - my $c = shift; - my $prefix = $c->stash('package_name_prefix'); - my $suffix = $c->stash('package_name_suffix'); - return join(' ', map { "'${prefix}qt5-${_}${suffix}'" } @_); -}); -$mojolicious->helper(qt5optdeps => sub { - my $c = shift; - my %d = @_; - my $prefix = $c->stash('package_name_prefix'); - my $suffix = $c->stash('package_name_suffix'); - return join(' ', map { "'${prefix}qt5-${_}${suffix}: $d{$_}'" } sort keys %d); -}); +# add helper to render Qt dependencies +sub _render_deps { + my ($package_prefix, $controller, @d) = @_; + my $prefix = $controller->stash('package_name_prefix'); + my $suffix = $controller->stash('package_name_suffix'); + return join(' ', map { "'${prefix}${package_prefix}-${_}${suffix}'" } @d); +} +sub _render_optdeps { + my ($package_prefix, $controller, %d) = @_; + my $prefix = $controller->stash('package_name_prefix'); + my $suffix = $controller->stash('package_name_suffix'); + return join(' ', map { "'${prefix}${package_prefix}-${_}${suffix}: $d{$_}'" } sort keys %d); +} +for my $qt_version (qw(qt5 qt6)) { + $mojolicious->helper("${qt_version}deps" => sub { _render_deps($qt_version, @_) }); + $mojolicious->helper("${qt_version}optdeps" => sub { _render_optdeps($qt_version, @_) }); +} # find templates; populate "pages" array my @pages; diff --git a/devel/generator/templates/layouts/mingw-w64-qt6-base.sh.ep b/devel/generator/templates/layouts/mingw-w64-qt6-base.sh.ep index 7d82f743..8bf12d87 100644 --- a/devel/generator/templates/layouts/mingw-w64-qt6-base.sh.ep +++ b/devel/generator/templates/layouts/mingw-w64-qt6-base.sh.ep @@ -16,7 +16,7 @@ pkgname=<%= $package_name %> _qtver=6.0.0-alpha pkgver=${_qtver/-/} -pkgrel=1 +pkgrel=2 arch=(any) url='https://www.qt.io' license=(GPL3 LGPL3 FDL custom) @@ -39,23 +39,26 @@ sha256sums=('<%== $qt_module_sha256 %>'\ _architectures='i686-w64-mingw32 x86_64-w64-mingw32' +% if ($patch_files->size || content_for('prepare')->size) { prepare () { cd $_pkgfqn +% if ($patch_files->size) { # 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 +% } +<%== content_for 'prepare' %>\ } +% } build() { for _arch in ${_architectures}; do export PKG_CONFIG=/usr/bin/$_arch-pkg-config $_arch-cmake -G Ninja -B build-$_arch -S $_pkgfqn \\ -DQT_HOST_PATH=/usr \\ - -DQT_HOST_PATH=/usr \\ - -DFEATURE_pkg_config=ON \\ -DFEATURE_pkg_config=ON \\ -DFEATURE_system_pcre2=ON \\ -DFEATURE_system_freetype=ON \\ @@ -83,16 +86,23 @@ package() { install -Dm644 $_pkgfqn/LICENSE* -t "$pkgdir"/usr/$_arch/share/licenses/$pkgname - # Symlinks for backwards compatibility + # Add symlinks of DLLs in usual bin directory mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/$_arch/bin" for dll in "$pkgdir"/usr/$_arch/lib/qt6/bin/*.dll; do ln -rs "$dll" "$pkgdir/usr/$_arch/bin/${dll##*/}" done + + # Symlinks for backwards compatibility for qmake; do ln -rs "$pkgdir"/usr/$_arch/lib/qt6/bin/$_b "$pkgdir"/usr/bin/$_arch-$_b-qt6 done - $_arch-strip --strip-unneeded "$pkgdir"/usr/$_arch/bin/*.dll - $_arch-strip -g "$pkgdir"/usr/$_arch/lib/*.a + # Drop QMAKE_PRL_BUILD_DIR because reference the build dir + find "$pkgdir/usr/$_arch/lib" -type f -name '*.prl' \\ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; + + find "$pkgdir/usr/$_arch" -iname '*.exe' -exec $_arch-strip --strip-all {} \; + find "$pkgdir/usr/$_arch" -iname '*.dll' -exec $_arch-strip --strip-unneeded {} \; + find "$pkgdir/usr/$_arch" -iname '*.a' -exec $_arch-strip -g {} \; done } diff --git a/devel/generator/templates/layouts/mingw-w64-qt6-module.sh.ep b/devel/generator/templates/layouts/mingw-w64-qt6-module.sh.ep new file mode 100644 index 00000000..59db36ce --- /dev/null +++ b/devel/generator/templates/layouts/mingw-w64-qt6-module.sh.ep @@ -0,0 +1,74 @@ +# Maintainer: Martchus +<%== content_for 'additional_contributors' %>\ + +# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where +# you also find the URL of a binary repository. + +<%== content_for 'comment_header' %>\ +pkgname=mingw-w64-qt6-<%== $qt_module %> +<%== content %>\ +options=('!strip' '!buildflags' 'staticlibs' '!emptydirs') +groups=(mingw-w64-qt6) +_pkgfqn="qt<%== $qt_module %>-everywhere-src-${_qtver}" +source=("https://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz"\ +<%== include 'fragments/source_file_list', relevant_files => $patch_files %>) +sha256sums=('<%== $qt_module_sha256 %>'\ +<%== include 'fragments/sha256_list', relevant_files => $patch_files %>) + +_architectures='i686-w64-mingw32 x86_64-w64-mingw32' + +% if ($patch_files->size || content_for('prepare')->size) { +prepare () { + cd $_pkgfqn + +% if ($patch_files->size) { + # 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 +% } +<%== content_for 'prepare' %>\ +} + +% } +build() { + for _arch in ${_architectures}; do + export PKG_CONFIG=/usr/bin/$_arch-pkg-config +<%== content_for 'before_build_config' %>\ + $_arch-cmake -G Ninja -B build-$_arch -S $_pkgfqn \\ + -DQT_HOST_PATH=/usr \\ + -DFEATURE_pkg_config=ON \\ + -DVulkan_LIBRARY="/usr/$_arch/lib/libvulkan.dll.a" \\ + -DVulkan_INCLUDE_DIR="/usr/$_arch/include"<%== content_for 'after_build_config' %> + cmake --build build-$_arch + done +} + +package() { + for _arch in ${_architectures}; do +<%== content_for 'before_package_install' %>\ + DESTDIR="$pkgdir" cmake --install build-$_arch<%== content_for 'after_package_install' %> + +% unless (stash('no_libs')) { + # Add symlinks of DLLs in usual bin directory + mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/$_arch/bin" + for dll in "$pkgdir"/usr/$_arch/lib/qt6/bin/*.dll; do + ln -rs "$dll" "$pkgdir/usr/$_arch/bin/${dll##*/}" + done + +% } +% unless (stash('no_libs')) { + # Drop QMAKE_PRL_BUILD_DIR because reference the build dir + find "$pkgdir/usr/$_arch/lib" -type f -name '*.prl' \\ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; + +% } + find "$pkgdir/usr/$_arch" -iname '*.exe' -exec $_arch-strip --strip-all {} \; + find "$pkgdir/usr/$_arch" -iname '*.dll' -exec $_arch-strip --strip-unneeded {} \; + find "$pkgdir/usr/$_arch" -iname '*.a' -exec $_arch-strip -g {} \; + done + + install -d "$pkgdir"/usr/share/licenses + ln -s /usr/share/licenses/mingw-w64-qt6-base "$pkgdir"/usr/share/licenses/mingw-w64-qt6-<%== $qt_module %> +} diff --git a/qt6-base/mingw-w64/PKGBUILD b/qt6-base/mingw-w64/PKGBUILD index a1289ffb..6a69707e 100644 --- a/qt6-base/mingw-w64/PKGBUILD +++ b/qt6-base/mingw-w64/PKGBUILD @@ -13,7 +13,7 @@ pkgname=mingw-w64-qt6-base _qtver=6.0.0-alpha pkgver=${_qtver/-/} -pkgrel=1 +pkgrel=2 arch=(any) url='https://www.qt.io' license=(GPL3 LGPL3 FDL custom) @@ -55,8 +55,6 @@ build() { export PKG_CONFIG=/usr/bin/$_arch-pkg-config $_arch-cmake -G Ninja -B build-$_arch -S $_pkgfqn \ -DQT_HOST_PATH=/usr \ - -DQT_HOST_PATH=/usr \ - -DFEATURE_pkg_config=ON \ -DFEATURE_pkg_config=ON \ -DFEATURE_system_pcre2=ON \ -DFEATURE_system_freetype=ON \ @@ -84,16 +82,23 @@ package() { install -Dm644 $_pkgfqn/LICENSE* -t "$pkgdir"/usr/$_arch/share/licenses/$pkgname - # Symlinks for backwards compatibility + # Add symlinks of DLLs in usual bin directory mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/$_arch/bin" for dll in "$pkgdir"/usr/$_arch/lib/qt6/bin/*.dll; do ln -rs "$dll" "$pkgdir/usr/$_arch/bin/${dll##*/}" done + + # Symlinks for backwards compatibility for qmake; do ln -rs "$pkgdir"/usr/$_arch/lib/qt6/bin/$_b "$pkgdir"/usr/bin/$_arch-$_b-qt6 done - $_arch-strip --strip-unneeded "$pkgdir"/usr/$_arch/bin/*.dll - $_arch-strip -g "$pkgdir"/usr/$_arch/lib/*.a + # Drop QMAKE_PRL_BUILD_DIR because reference the build dir + find "$pkgdir/usr/$_arch/lib" -type f -name '*.prl' \ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; + + find "$pkgdir/usr/$_arch" -iname '*.exe' -exec $_arch-strip --strip-all {} \; + find "$pkgdir/usr/$_arch" -iname '*.dll' -exec $_arch-strip --strip-unneeded {} \; + find "$pkgdir/usr/$_arch" -iname '*.a' -exec $_arch-strip -g {} \; done } diff --git a/qt6-declarative/mingw-w64/PKGBUILD b/qt6-declarative/mingw-w64/PKGBUILD new file mode 100644 index 00000000..5ab8baff --- /dev/null +++ b/qt6-declarative/mingw-w64/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Martchus + +# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where +# you also find the URL of a binary repository. + +pkgname=mingw-w64-qt6-declarative +_qtver=6.0.0-alpha +pkgver=${_qtver/-/} +pkgrel=1 +arch=(any) +url='https://www.qt.io' +license=(GPL3 LGPL3 FDL custom) +pkgdesc='Classes for QML and JavaScript languages (mingw-w64)' +depends=('mingw-w64-qt6-base') +makedepends=('mingw-w64-cmake' 'mingw-w64-vulkan-headers' 'mingw-w64-vulkan-icd-loader' 'qt6-declarative' 'ninja' 'python') +optdepends=('qt6-declarative: development tools') +options=('!strip' '!buildflags' 'staticlibs' '!emptydirs') +groups=(mingw-w64-qt6) +_pkgfqn="qtdeclarative-everywhere-src-${_qtver}" +source=("https://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz") +sha256sums=('0f72a753fd61e49572a1aa4a6e3bfe9e68461ad82320ac978d61b5ff9b8d27f0') + +_architectures='i686-w64-mingw32 x86_64-w64-mingw32' + +build() { + for _arch in ${_architectures}; do + export PKG_CONFIG=/usr/bin/$_arch-pkg-config + $_arch-cmake -G Ninja -B build-$_arch -S $_pkgfqn \ + -DQT_HOST_PATH=/usr \ + -DFEATURE_pkg_config=ON \ + -DVulkan_LIBRARY="/usr/$_arch/lib/libvulkan.dll.a" \ + -DVulkan_INCLUDE_DIR="/usr/$_arch/include" + cmake --build build-$_arch + done +} + +package() { + for _arch in ${_architectures}; do + DESTDIR="$pkgdir" cmake --install build-$_arch + + # Add symlinks of DLLs in usual bin directory + mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/$_arch/bin" + for dll in "$pkgdir"/usr/$_arch/lib/qt6/bin/*.dll; do + ln -rs "$dll" "$pkgdir/usr/$_arch/bin/${dll##*/}" + done + + # Drop QMAKE_PRL_BUILD_DIR because reference the build dir + find "$pkgdir/usr/$_arch/lib" -type f -name '*.prl' \ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; + + find "$pkgdir/usr/$_arch" -iname '*.exe' -exec $_arch-strip --strip-all {} \; + find "$pkgdir/usr/$_arch" -iname '*.dll' -exec $_arch-strip --strip-unneeded {} \; + find "$pkgdir/usr/$_arch" -iname '*.a' -exec $_arch-strip -g {} \; + done + + install -d "$pkgdir"/usr/share/licenses + ln -s /usr/share/licenses/mingw-w64-qt6-base "$pkgdir"/usr/share/licenses/mingw-w64-qt6-declarative +} diff --git a/qt6-declarative/mingw-w64/PKGBUILD.sh.ep b/qt6-declarative/mingw-w64/PKGBUILD.sh.ep new file mode 100644 index 00000000..82db2c95 --- /dev/null +++ b/qt6-declarative/mingw-w64/PKGBUILD.sh.ep @@ -0,0 +1,12 @@ +% layout 'mingw-w64-qt6-module', has_binaries => 1; +\ +_qtver=6.0.0-alpha +pkgver=${_qtver/-/} +pkgrel=1 +arch=(any) +url='https://www.qt.io' +license=(GPL3 LGPL3 FDL custom) +pkgdesc='Classes for QML and JavaScript languages (mingw-w64)' +depends=(<%== qt6deps qw(base) %>) +makedepends=('mingw-w64-cmake' 'mingw-w64-vulkan-headers' 'mingw-w64-vulkan-icd-loader' 'qt6-declarative' 'ninja' 'python') +optdepends=('qt6-declarative: development tools') diff --git a/qt6-declarative/mingw-w64/qtdeclarative-sha256.txt b/qt6-declarative/mingw-w64/qtdeclarative-sha256.txt new file mode 100644 index 00000000..4680d694 --- /dev/null +++ b/qt6-declarative/mingw-w64/qtdeclarative-sha256.txt @@ -0,0 +1 @@ +0f72a753fd61e49572a1aa4a6e3bfe9e68461ad82320ac978d61b5ff9b8d27f0 diff --git a/qt6-svg/mingw-w64/PKGBUILD b/qt6-svg/mingw-w64/PKGBUILD new file mode 100644 index 00000000..b43359c4 --- /dev/null +++ b/qt6-svg/mingw-w64/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Martchus + +# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where +# you also find the URL of a binary repository. + +pkgname=mingw-w64-qt6-svg +_qtver=6.0.0-alpha +pkgver=${_qtver/-/} +pkgrel=1 +arch=(any) +url='https://www.qt.io' +license=(GPL3 LGPL3 FDL custom) +pkgdesc='Classes for displaying the contents of SVG files (mingw-w64)' +depends=('mingw-w64-qt6-base') +makedepends=('mingw-w64-cmake' 'mingw-w64-vulkan-icd-loader' 'qt6-base' 'ninja') +options=('!strip' '!buildflags' 'staticlibs' '!emptydirs') +groups=(mingw-w64-qt6) +_pkgfqn="qtsvg-everywhere-src-${_qtver}" +source=("https://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz") +sha256sums=('1ff80c015fe044fa1b625d37830b02e0cc780ee92638a1b7a5561adb5a0546ee') + +_architectures='i686-w64-mingw32 x86_64-w64-mingw32' + +build() { + for _arch in ${_architectures}; do + export PKG_CONFIG=/usr/bin/$_arch-pkg-config + $_arch-cmake -G Ninja -B build-$_arch -S $_pkgfqn \ + -DQT_HOST_PATH=/usr \ + -DFEATURE_pkg_config=ON \ + -DVulkan_LIBRARY="/usr/$_arch/lib/libvulkan.dll.a" \ + -DVulkan_INCLUDE_DIR="/usr/$_arch/include" + cmake --build build-$_arch + done +} + +package() { + for _arch in ${_architectures}; do + DESTDIR="$pkgdir" cmake --install build-$_arch + + # Add symlinks of DLLs in usual bin directory + mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/$_arch/bin" + for dll in "$pkgdir"/usr/$_arch/lib/qt6/bin/*.dll; do + ln -rs "$dll" "$pkgdir/usr/$_arch/bin/${dll##*/}" + done + + # Drop QMAKE_PRL_BUILD_DIR because reference the build dir + find "$pkgdir/usr/$_arch/lib" -type f -name '*.prl' \ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; + + find "$pkgdir/usr/$_arch" -iname '*.exe' -exec $_arch-strip --strip-all {} \; + find "$pkgdir/usr/$_arch" -iname '*.dll' -exec $_arch-strip --strip-unneeded {} \; + find "$pkgdir/usr/$_arch" -iname '*.a' -exec $_arch-strip -g {} \; + done + + install -d "$pkgdir"/usr/share/licenses + ln -s /usr/share/licenses/mingw-w64-qt6-base "$pkgdir"/usr/share/licenses/mingw-w64-qt6-svg +} diff --git a/qt6-svg/mingw-w64/PKGBUILD.sh.ep b/qt6-svg/mingw-w64/PKGBUILD.sh.ep new file mode 100644 index 00000000..0b19f216 --- /dev/null +++ b/qt6-svg/mingw-w64/PKGBUILD.sh.ep @@ -0,0 +1,11 @@ +% layout 'mingw-w64-qt6-module'; +\ +_qtver=6.0.0-alpha +pkgver=${_qtver/-/} +pkgrel=1 +arch=(any) +url='https://www.qt.io' +license=(GPL3 LGPL3 FDL custom) +pkgdesc='Classes for displaying the contents of SVG files (mingw-w64)' +depends=(<%== qt6deps qw(base) %>) +makedepends=('mingw-w64-cmake' 'mingw-w64-vulkan-icd-loader' 'qt6-base' 'ninja') diff --git a/qt6-svg/mingw-w64/qtsvg-sha256.txt b/qt6-svg/mingw-w64/qtsvg-sha256.txt new file mode 100644 index 00000000..ed1c2da5 --- /dev/null +++ b/qt6-svg/mingw-w64/qtsvg-sha256.txt @@ -0,0 +1 @@ +1ff80c015fe044fa1b625d37830b02e0cc780ee92638a1b7a5561adb5a0546ee diff --git a/qt6-tools/mingw-w64/PKGBUILD b/qt6-tools/mingw-w64/PKGBUILD new file mode 100644 index 00000000..e300407d --- /dev/null +++ b/qt6-tools/mingw-w64/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Martchus + +# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where +# you also find the URL of a binary repository. + +pkgname=mingw-w64-qt6-tools +_qtver=6.0.0-alpha +pkgver=${_qtver/-/} +pkgrel=1 +arch=(any) +url='https://www.qt.io' +license=(GPL3 LGPL3 FDL custom) +pkgdesc='A cross-platform application and UI framework (tools, mingw-w64)' +depends=('mingw-w64-qt6-base') +makedepends=('mingw-w64-cmake' 'mingw-w64-vulkan-headers' 'mingw-w64-vulkan-icd-loader' 'mingw-w64-qt6-declarative' 'qt6-declarative' 'qt6-tools' 'ninja') +options=('!strip' '!buildflags' 'staticlibs' '!emptydirs') +groups=(mingw-w64-qt6) +_pkgfqn="qttools-everywhere-src-${_qtver}" +source=("https://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz") +sha256sums=('69f242ecca020b78643d2d7aaae9e2c1713b6aa7b9b915b16cc9265bf5dfd212') + +_architectures='i686-w64-mingw32 x86_64-w64-mingw32' + +build() { + for _arch in ${_architectures}; do + export PKG_CONFIG=/usr/bin/$_arch-pkg-config + $_arch-cmake -G Ninja -B build-$_arch -S $_pkgfqn \ + -DQT_HOST_PATH=/usr \ + -DFEATURE_pkg_config=ON \ + -DVulkan_LIBRARY="/usr/$_arch/lib/libvulkan.dll.a" \ + -DVulkan_INCLUDE_DIR="/usr/$_arch/include" + cmake --build build-$_arch + done +} + +package() { + for _arch in ${_architectures}; do + DESTDIR="$pkgdir" cmake --install build-$_arch + + # Add symlinks of DLLs in usual bin directory + mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/$_arch/bin" + for dll in "$pkgdir"/usr/$_arch/lib/qt6/bin/*.dll; do + ln -rs "$dll" "$pkgdir/usr/$_arch/bin/${dll##*/}" + done + + # Drop QMAKE_PRL_BUILD_DIR because reference the build dir + find "$pkgdir/usr/$_arch/lib" -type f -name '*.prl' \ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; + + find "$pkgdir/usr/$_arch" -iname '*.exe' -exec $_arch-strip --strip-all {} \; + find "$pkgdir/usr/$_arch" -iname '*.dll' -exec $_arch-strip --strip-unneeded {} \; + find "$pkgdir/usr/$_arch" -iname '*.a' -exec $_arch-strip -g {} \; + done + + install -d "$pkgdir"/usr/share/licenses + ln -s /usr/share/licenses/mingw-w64-qt6-base "$pkgdir"/usr/share/licenses/mingw-w64-qt6-tools +} diff --git a/qt6-tools/mingw-w64/PKGBUILD.sh.ep b/qt6-tools/mingw-w64/PKGBUILD.sh.ep new file mode 100644 index 00000000..f4388349 --- /dev/null +++ b/qt6-tools/mingw-w64/PKGBUILD.sh.ep @@ -0,0 +1,11 @@ +% layout 'mingw-w64-qt6-module', has_binaries => 1; +\ +_qtver=6.0.0-alpha +pkgver=${_qtver/-/} +pkgrel=1 +arch=(any) +url='https://www.qt.io' +license=(GPL3 LGPL3 FDL custom) +pkgdesc='A cross-platform application and UI framework (tools, mingw-w64)' +depends=(<%== qt6deps qw(base) %>) +makedepends=('mingw-w64-cmake' 'mingw-w64-vulkan-headers' 'mingw-w64-vulkan-icd-loader' <%== qt6deps qw(declarative) %> 'qt6-declarative' 'qt6-tools' 'ninja') diff --git a/qt6-tools/mingw-w64/qttools-sha256.txt b/qt6-tools/mingw-w64/qttools-sha256.txt new file mode 100644 index 00000000..161d6b6c --- /dev/null +++ b/qt6-tools/mingw-w64/qttools-sha256.txt @@ -0,0 +1 @@ +69f242ecca020b78643d2d7aaae9e2c1713b6aa7b9b915b16cc9265bf5dfd212