Files
omarchy-pkgs/pkgbuilds/quickshell/PKGBUILD
T
outfoxxed 5fcf959788 Patch Quickshell to temporarily work around Qt 6.12 breakage (#935)
Namespacing conflict from new Qt 6.12 types, patching until
its clear if this is a Qt bug or not.
2026-10-10 10:14:07 +00:00

69 lines
1.5 KiB
Bash

pkgname=quickshell
pkgver=0.3.2
pkgrel=3
pkgdesc='Flexible toolkit for making desktop shells with QtQuick'
arch=(x86_64 aarch64)
url='https://github.com/quickshell-mirror/quickshell'
license=(LGPL-3.0-only)
depends=(
cpptrace
glibc
hicolor-icon-theme
jemalloc
libdrm
libgcc
libglvnd
libpipewire
libstdc++
libxcb
mesa
pam
polkit
qt6-base
qt6-declarative
qt6-svg
qt6-wayland
wayland
)
makedepends=(
cli11
cmake
ninja
qt6-shadertools
spirv-tools
vulkan-headers
wayland-protocols
)
provides=("$pkgname")
conflicts=(quickshell-git)
_archive="$pkgname-$pkgver"
source=("$_archive.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
load_qtquick_611.patch
quickshell-check.hook)
sha256sums=('946a27e2a276917a03c1079e5c60971af84ece73088c3661dee455d92eb420f7'
'23b65d205d825f11a1cd8501acbc6e50250d09a6ce607e2ff8b3cf5d438bd0ce'
'8543e21aeaaa5441b73a679160e7601a957f16c433e8d6bd9257e80bd0e94083')
prepare() {
cd "$_archive"
patch -Np1 --fuzz=0 -i "$srcdir/load_qtquick_611.patch"
}
build() {
cd "$_archive"
cmake -G Ninja -B build -W no-dev \
-D CMAKE_BUILD_TYPE=RelWithDebInfo \
-D DISTRIBUTOR='Omarchy' \
-D CRASH_REPORTER=Off \
-D CMAKE_INSTALL_PREFIX=/usr \
-D INSTALL_QML_PREFIX=lib/qt6/qml
cmake --build build
}
package() {
install -Dm644 quickshell-check.hook -t "$pkgdir/usr/share/libalpm/hooks"
cd "$_archive"
DESTDIR="$pkgdir" cmake --install build
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}