File hyprwave.spec of Package hyprwave

#
# spec file for package hyprwave
#
# Copyright (c) 2026 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:           hyprwave
Version:        0.8
Release:        0
Summary:        Music control bar overlay for Wayland compositors
License:        GPL-3.0-or-later
URL:            https://github.com/shantanubaddar/hyprwave
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  gtk4-layer-shell-devel
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  pkgconfig(libpulse)

%description
Hyprwave is a sleek music control bar overlay for Wayland compositors
such as Hyprland, Niri, and Sway. It provides on-screen playback
controls, album art, and playback information via the MPRIS2 protocol,
allowing users to interact with media players (like Spotify, VLC, and
other MPRIS-compatible apps) without switching focus from other
tasks.

%prep
%autosetup -p1

%build
%make_build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/hyprwave/icons

install -m 755 hyprwave %{buildroot}%{_bindir}/hyprwave
install -m 755 hyprwave-toggle.sh %{buildroot}%{_bindir}/hyprwave-toggle
install -m 644 style.css %{buildroot}%{_datadir}/hyprwave/style.css
install -m 644 icons/*.svg %{buildroot}%{_datadir}/hyprwave/icons/

%files
%license LICENSE
%doc README.md
%{_bindir}/hyprwave
%{_bindir}/hyprwave-toggle
%dir %{_datadir}/hyprwave
%dir %{_datadir}/hyprwave/icons
%{_datadir}/hyprwave/style.css
%{_datadir}/hyprwave/icons/*.svg

%changelog
openSUSE Build Service is sponsored by