File PKGBUILD of Package qt6-6.9.0
# Fix for error: bsdtar: Failed to set default locale
# LANG=en_US.UTF-8 # not available, use C or POSIX
LANG=C
LANG=C.UTF-8
LC_ALL=${LANG}
# Get some information about the machine we are building on:
_numberOfProcessorsOnMachine=$(nproc)
_wantedJobs=$(echo "1.1*${_numberOfProcessorsOnMachine}" | bc -l)
_jobsIget=$(echo ${_wantedJobs} | awk '{print int($1+0.5)}')
_TOTAL_DISK=$(df -h --total | awk 'END{print $2}')
_FREEMEM=$(free --mega)
_TOTAL_MEM=$(free --total --mega | xargs | awk '{print $19"MB"}')
_TOTAL_RAM=$(free --total --mega | xargs | awk '{print $8"MB"}')
_TOTAL_SWAP=$(free --total --mega | xargs | awk '{print $15"MB"}')
pkgname=qt6
pkgver=6.9.0
pkgrel=1
#_install_prefix=$HOME/Qt${pkgver}
_install_prefix=${pkgdir}/opt/Qt${pkgver}
arch=(x86_64)
url='https://www.qt.io'
license=(GPL-3.0-only
LGPL-3.0-only
LicenseRef-Qt-Commercial
Qt-GPL-exception-1.0)
pkgdesc='A cross-platform application and UI framework'
#depends=()
# vulkan-broadcom, vulkan-freedreno, vulkan-panfrost, zstd
makedepends=(coreutils
procps-ng
bc
alsa-lib
cmake
cups
freetds
git
gst-plugins-base-libs
gtk3
libfbclient
libpulse
mariadb-libs
ninja
postgresql
unixodbc
xmlstarlet
brotli
dbus
double-conversion
fontconfig
freetype2
gcc-libs
glib2
glibc
harfbuzz
icu
krb5
libb2
libcups
libdrm
libgl
libice
libinput
libjpeg-turbo
libpng
libproxy
libsm
libx11
libxcb
libxkbcommon
libxkbcommon-x11
md4c
mesa
mtdev
openssl
pcre2
shared-mime-info
sqlite
systemd-libs
tslib
vulkan-headers
xcb-util-cursor
xcb-util-image
xcb-util-keysyms
xcb-util-renderutil
xcb-util-wm
xdg-utils
zlib
python-lttngust
python-html5lib
ffmpeg
jasper
gstreamer-vaapi
vulkan-extra-layers
vulkan-extra-tools
vulkan-headers
vulkan-icd-loader
vulkan-mesa-layers
vulkan-nouveau
vulkan-radeon
vulkan-swrast
vulkan-tools
vulkan-utility-libraries
vulkan-validation-layers
vulkan-virtio
clang
gn
gperf
python-snappy
snappy
nodejs
python-protobuf
protobuf
hunspell
assimp
bluez
python-pybluez
libtiff
speech-dispatcher
wayland
llvm
libmng
pcsclite)
#optdepends=()
source=("qt-everywhere-src-${pkgver}.tar.xz")
sha256sums=('SKIP')
build() {
echo "--- Machine data we are building on ---"
echo "Total disk: $_TOTAL_DISK"
echo "Output of free -h:"
echo "$_FREEMEM"
echo "Total memory: $_TOTAL_MEM"
echo "Total RAM: $_TOTAL_RAM"
echo "Total SWAP: $_TOTAL_SWAP"
echo "_numberOfProcessorsOnMachine=$_numberOfProcessorsOnMachine"
echo "_wantedJobs=$_wantedJobs"
echo "_jobsIget=$_jobsIget"
echo "--- End machine data we are building on ---"
echo $(pwd)
ls -al
cd qt-everywhere-src-${pkgver}
echo $(pwd)
ls -al
mkdir -pv build
export CFLAGS=$(echo "$CFLAGS -Wno-error -Wno-error=calloc-transposed-args -Wno-error=template-id-cdtor -Wno-error=use-after-free -Wno-error=maybe-uninitialized -Wno-error=unused-parameter -Wno-error=return-type -Wno-error=implicit-function-declaration")
export CXXFLAGS=$(echo "$CXXFLAGS -Wno-error -Wno-error=calloc-transposed-args -Wno-error=template-id-cdtor -Wno-error=use-after-free -Wno-error=maybe-uninitialized -Wno-error=unused-parameter -Wno-error=return-type -Wno-error=implicit-function-declaration")
cd build
#../configure -prefix ${_install_prefix} -optimized-qmake -developer-build -opensource -nomake examples -nomake tests -system-zlib -no-zstd -- -D QT_FEATURE_zstd=OFF -D FEATURE_zstd=OFF
../configure -prefix ${_install_prefix} -optimized-qmake -developer-build -opensource -nomake examples -nomake tests
echo "Configuration should have completed here."
#cmake --build build --parallel ${_jobsIget}
cmake --build . --parallel ${_jobsIget}
echo "Build should have completed here."
}
package() {
pkgdesc='A cross-platform application and UI framework'
mkdir -pv ${pkgdir}/opt
cd qt-everywhere-src-${pkgver}
cmake --install build
#mv ${_install_prefix}/* ${pkgdir}/opt/.
echo "--- Show what will be packaged ---"
find $(pkgdir) 2>/dev/null | sed "s|$(pkgdir)||g"
echo "--- End show what will be packaged ---"
echo
echo "Install should have completed here."
}