Skip to content

Commit

Permalink
fix: switchboard-plug-tweaks (#1471)
Browse files Browse the repository at this point in the history
* fix: switchboard-plug-tweaks

Signed-off-by: madomado <[email protected]>

* feat: obsolete old `pantheon-tweaks` package and more fixes

---------

Signed-off-by: madomado <[email protected]>
  • Loading branch information
madonuko authored Jul 10, 2024
1 parent 5d384c8 commit acc804e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 59 deletions.
5 changes: 0 additions & 5 deletions anda/desktops/elementary/pantheon-tweaks/anda.hcl

This file was deleted.

37 changes: 0 additions & 37 deletions anda/desktops/elementary/pantheon-tweaks/pantheon-tweaks.spec

This file was deleted.

1 change: 0 additions & 1 deletion anda/desktops/elementary/pantheon-tweaks/update.rhai

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@

%global plug_type personal
%global plug_name pantheon-tweaks
%global app io.github.pantheon_tweaks.pantheon-tweaks

Name: switchboard-plug-tweaks
Summary: Switchboard Tweaks Plug
Version: 2.0.2
Release: 1%?dist
Release: 2%?dist
License: GPL-3.0-or-later

URL: https://github.com/pantheon-tweaks/pantheon-tweaks
Source0: %{url}/archive/%{version}/%{plug_name}-%{version}.tar.gz

Provides: pantheon-tweaks = %version-%release
Obsoletes: pantheon-tweaks < 2.0.2-2

BuildRequires: gcc
BuildRequires: gettext
BuildRequires: libappstream-glib
Expand All @@ -22,7 +26,7 @@ BuildRequires: pkgconfig(gee-0.8)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(granite) >= 6.0.0
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(switchboard-2.0)
BuildRequires: pkgconfig(switchboard-3)

Requires: switchboard%{?_isa}

Expand Down Expand Up @@ -63,28 +67,22 @@ de trabalho.
%install
%meson_install

%find_lang %{plug_name}-plug
%find_lang %{plug_name}

# remove the specified stock icon from metainfo (invalid in libappstream-glib)
sed -i '/icon type="stock"/d' %{buildroot}/%{_datadir}/metainfo/%{plug_name}.metainfo.xml
sed -i '/icon type="stock"/d' %buildroot%_metainfodir/%app.metainfo.xml

%check
appstream-util validate-relax --nonet \
%{buildroot}/%{_datadir}/metainfo/%{plug_name}.metainfo.xml
appstream-util validate-relax --nonet %buildroot%_metainfodir/%app.metainfo.xml


%files -f %{plug_name}-plug.lang
%files -f %{plug_name}.lang
%license COPYING
%doc README.md
%doc AUTHORS
%doc CONTRIBUTORS

%{_libdir}/switchboard/%{plug_type}/lib%{plug_name}.so

%{_datadir}/metainfo/%{plug_name}.metainfo.xml
%{_datadir}/icons/hicolor/*/categories/preferences-*.svg


%changelog
* Sat Oct 15 2022 windowsboy111 <[email protected]>
- Repackaged for Terra
%_bindir/pantheon-tweaks
%_datadir/applications/%app.desktop
%_iconsdir/hicolor/*/apps/%app.svg
%_metainfodir/io.github.pantheon_tweaks.pantheon-tweaks.metainfo.xml

0 comments on commit acc804e

Please sign in to comment.