File quickshell.spec of Package quickshell
#
# spec file for package quickshell
#
# Copyright (c) 2025 mantarimay
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: quickshell
Version: 0.2.0
Release: 0
Summary: Flexible QtQuick based desktop shell toolkit
License: LGPL-3.0-only AND GPL-3.0-only
URL: https://github.com/quickshell-mirror/quickshell
Source0: %{name}-%{version}.tar.zst
BuildRequires: Mesa-libGLESv3-devel
BuildRequires: cmake
BuildRequires: hicolor-icon-theme
BuildRequires: gcc-c++
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: qt6-declarative-devel
BuildRequires: spirv-tools
BuildRequires: wayland-devel
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6CorePrivate)
BuildRequires: cmake(Qt6Qml)
BuildRequires: cmake(Qt6Quick)
BuildRequires: cmake(Qt6QuickControls2)
BuildRequires: cmake(Qt6QuickPrivate)
BuildRequires: cmake(Qt6ShaderTools)
BuildRequires: cmake(Qt6WaylandClient)
BuildRequires: cmake(Qt6WaylandClientPrivate)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: pkgconfig(CLI11)
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(jemalloc)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libpipewire-0.3)
BuildRequires: pkgconfig(pam)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-protocols)
%description
Quickshell is a toolkit for building status bars, widgets, lockscreens,
and other desktop components using QtQuick. It can be used alongside your
wayland compositor or window manager to build a complete desktop environment.
%prep
%autosetup -p1
%build
export CFLAGS="%{optflags} -I/usr/include/wayland"
export CXXFLAGS="%{optflags} -Wno-error=return-type"
%define __builder ninja
%cmake -DBUILD_SHARED_LIBS=OFF \
-DCMAKE_SKIP_RPATH=TRUE \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE \
-DCMAKE_INSTALL_RPATH="" \
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE \
-DDISTRIBUTOR="openSUSE Contributor (mantarimay)" \
-DDISTRIBUTOR_DEBUGINFO_AVAILABLE=YES \
-DX11=OFF \
-DI3=OFF \
-DI3_IPC=OFF \
-DCRASH_REPORTER=OFF \
-DINSTALL_QML_PREFIX=%{_lib}/qt6/qml
%cmake_build
%install
%cmake_install
%files
%license LICENSE*
%doc README.md
%{_bindir}/qs
%{_bindir}/quickshell
%{_libdir}/qt6/qml/Quickshell
%{_datadir}/applications/org.quickshell.desktop
%{_datadir}/icons/hicolor/scalable/apps/org.quickshell.svg
%changelog