127 lines
5.5 KiB
Bash
127 lines
5.5 KiB
Bash
# 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.
|
|
|
|
# This file is created from PKGBUILD.sh.ep contained by the mentioned repository.
|
|
# Do not edit it manually! See README.md in the repository's root directory
|
|
# for more information.
|
|
|
|
# All patches are managed at https://github.com/Martchus/qtbase
|
|
|
|
pkgname=static-compat-qt6-base
|
|
_qtver=6.4.2
|
|
pkgver=${_qtver/-/}
|
|
pkgrel=1
|
|
arch=(x86_64)
|
|
url='https://www.qt.io'
|
|
license=(GPL3 LGPL3 FDL custom)
|
|
pkgdesc='A cross-platform application and UI framework'
|
|
depends=(shared-mime-info
|
|
static-compat-brotli static-compat-dbus static-compat-double-conversion
|
|
static-compat-fontconfig static-compat-libb2 static-compat-libglvnd
|
|
static-compat-libice static-compat-libinput static-compat-libjpeg-turbo
|
|
static-compat-libxdamage static-compat-libxkbcommon static-compat-libxmu
|
|
static-compat-libxxf86vm static-compat-md4c static-compat-pcre2
|
|
static-compat-sqlite static-compat-xcb-util-image static-compat-xcb-util-keysyms
|
|
static-compat-xcb-util-renderutil static-compat-vulkan-headers
|
|
static-compat-xcb-util-wm static-compat-xorgproto static-compat-xtrans)
|
|
makedepends=(static-compat-cmake xdg-utils ninja)
|
|
options=('!strip' '!buildflags' 'staticlibs' '!emptydirs')
|
|
_pkgfqn="qtbase-everywhere-src-${_qtver}"
|
|
source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz"
|
|
'0001-Use-CMake-s-default-import-library-suffix.patch'
|
|
'0002-Fix-finding-D-Bus.patch'
|
|
'0003-Fix-using-static-PCRE2-and-DBus-1.patch'
|
|
'0004-Fix-transitive-dependencies-of-static-libraries.patch'
|
|
'0005-Fix-libjpeg-workaround-for-conflict-with-rpcndr.h.patch'
|
|
'0006-Support-finding-static-MariaDB-client-library.patch'
|
|
'0007-Allow-overriding-CMAKE_FIND_LIBRARY_SUFFIXES-to-pref.patch'
|
|
'0008-Fix-crashes-in-rasterization-code-using-setjmp.patch'
|
|
'0009-Find-fontconfig-via-pkg-config-for-correct-handling-.patch'
|
|
'0010-Fix-dependency-of-xcb-image-on-xcb-util.patch'
|
|
'0011-Allow-using-properties-of-PkgConfig-targets-for-glib.patch'
|
|
'0012-Allow-using-properties-of-PkgConfig-targets-for-Wayl.patch')
|
|
sha256sums=('a88bc6cedbb34878a49a622baa79cace78cfbad4f95fdbd3656ddb21c705525d'
|
|
'ce58610b70ca98997bcb0bb03fc6cc9747f663f03b1f996f34d1bbc947a20e79'
|
|
'5fd12c32d91113b5e8835b76d843f85dfb95fe450ca7d911117c3dced41248c6'
|
|
'3094882ddb18c6beb60e96df950e8a2c1e960d877706b57ac6f72cfd986b5f65'
|
|
'3ecda2deab3e51f8c53e1b0d779c4c5e98c209b4639e90d9807e7ce5a46cf623'
|
|
'88059ba7e8b5cb7ffe88886920345af9cee2682f55333f621ccec84e6794c37b'
|
|
'fca5f9e5ab63864e89754ea6c40f580dff12e7a388d601fd9835a2cce4637723'
|
|
'92a48e8fa7199c9e054a203128b0e7b556cf7207d60abf848950622b4272bfce'
|
|
'e37d322d7d5a0185ee32cff9812bf73e893c7d669615be8fa11c94e5bf6657cd'
|
|
'96c16d3d1eb6e23bc578cbb4dc847e6086d53d16e1a2715b3bc8a1d62f57dbb8'
|
|
'a1a130128c3e68e210ba7aa74e6c3bbacd4115058646251f34b242907684a32c'
|
|
'd162e35e8dcff001f3e48f062c90e1eac955b5a7384425b8b594d90ee01f9001'
|
|
'd983b49dc444cf0d99dec91559956c710789c5a52ff97fab656c3b3d2d08de77')
|
|
|
|
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() {
|
|
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 \
|
|
-DINSTALL_BINDIR=lib/qt6/bin \
|
|
-DINSTALL_DOCDIR=share/doc/qt6 \
|
|
-DINSTALL_ARCHDATADIR=lib/qt6 \
|
|
-DINSTALL_DATADIR=share/qt6 \
|
|
-DINSTALL_INCLUDEDIR=include/qt6 \
|
|
-DINSTALL_MKSPECSDIR=lib/qt6/mkspecs \
|
|
-DINSTALL_EXAMPLESDIR=share/doc/qt6/examples \
|
|
-DINPUT_openssl=linked \
|
|
-DQT_FEATURE_openssl_linked=ON \
|
|
-DQT_FEATURE_static_runtime=ON \
|
|
-DQT_FEATURE_system_sqlite=ON \
|
|
-DQT_FEATURE_system_xcb_xinput=ON \
|
|
-DQT_FEATURE_xcb=ON \
|
|
-DQT_FEATURE_xcb_sm=ON \
|
|
-DQT_FEATURE_icu=OFF \
|
|
-DQT_FEATURE_kms=OFF \
|
|
-DQT_FEATURE_eglfs=OFF \
|
|
-DQT_FEATURE_gbm=OFF \
|
|
-DQT_FEATURE_linuxfb=OFF \
|
|
-DQT_FEATURE_gssapi=OFF \
|
|
-DQT_FEATURE_fontconfig=ON \
|
|
-DQT_FEATURE_dynamicgl=OFF \
|
|
-DQT_FEATURE_opengl_dynamic=OFF \
|
|
-DGLIB2_USE_PKG_CONFIG=ON \
|
|
-DWAYLAND_USE_PKG_CONFIG=ON \
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_harfbuzz=TRUE \
|
|
-DCMAKE_INSTALL_OLDINCLUDEDIR=$static_compat_prefix/include \
|
|
-DGSSAPI_INCLUDE_DIRS=$static_compat_prefix/include \
|
|
-DICU_INCLUDE_DIR=$static_compat_prefix/include \
|
|
-DLibdrm_INCLUDE_DIR=$static_compat_prefix/include \
|
|
-DGLESv2_INCLUDE_DIR=$static_compat_prefix/include \
|
|
-Dgbm_INCLUDE_DIR=$static_compat_prefix/include
|
|
VERBOSE=1 cmake --build build
|
|
}
|
|
|
|
package() {
|
|
source static-compat-environment
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
install -Dm644 $_pkgfqn/LICENSES/* -t "$pkgdir"/usr/share/licenses/$pkgname
|
|
|
|
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
|
|
find "$pkgdir" -type f -name '*.prl' \
|
|
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
|
|
|
|
rm -r "$pkgdir/$static_compat_prefix"/share/doc
|
|
}
|