diff options
author | Martchus | 2021-02-05 22:21:36 +0100 |
---|---|---|
committer | Martchus | 2021-02-05 22:21:36 +0100 |
commit | 622407d1a260f5e7f7dba2bbf956c1f79127b0dd (patch) | |
tree | 24a343f4879c4f4b443cee36995c6a6d207a8aa1 /PKGBUILD | |
parent | 39f8d9073c535de0129fe1e8a97c1356ad2e931b (diff) | |
download | aur-622407d1a260f5e7f7dba2bbf956c1f79127b0dd.tar.gz |
Update to 6.0.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 5 insertions, 15 deletions
@@ -4,7 +4,7 @@ # you also find the URL of a binary repository. pkgname=mingw-w64-qt6-tools-static -_qtver=6.0.0 +_qtver=6.0.1 pkgver=${_qtver/-/} pkgrel=1 arch=(any) @@ -16,28 +16,17 @@ makedepends=('mingw-w64-cmake-static' 'mingw-w64-vulkan-headers' 'mingw-w64-vulk options=('!strip' '!buildflags' 'staticlibs' '!emptydirs') groups=(mingw-w64-qt6) _pkgfqn="qttools-everywhere-src-${_qtver}" -source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz" - '0001-Make-windeployqt-an-optional-feature.patch') -sha256sums=('b6dc559db447bf394d09dfb238d5c09108f834139a183888179e855c6566bfae' - 'f316cdb87dcc84d1fe9ebd262812118e35571aa0fadd3da6ac3b9f42af19b8bb') +source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz") +sha256sums=('dc354358f7d2ed56d17190f4ad7e3fc3ad88185be1eb74b9132b8b66185c349f') _architectures='i686-w64-mingw32 x86_64-w64-mingw32' -prepare () { - cd $_pkgfqn - - # 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() { for _arch in ${_architectures}; do export PKG_CONFIG=/usr/bin/$_arch-pkg-config $_arch-cmake-static -G Ninja -B build-$_arch -S $_pkgfqn \ -DCMAKE_INSTALL_PREFIX:PATH="/usr/$_arch/static" \ + -DFEATURE_static_runtime=ON \ -DFEATURE_pkg_config=ON \ -DFEATURE_windeployqt=OFF cmake --build build-$_arch @@ -51,6 +40,7 @@ package() { 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 {} \; + [[ -d "$pkgdir/usr/$_arch/static/share/doc" ]] && rm -r "$pkgdir/usr/$_arch/static/share/doc" done install -d "$pkgdir"/usr/share/licenses |