OBS-URL: https://build.opensuse.org/package/show/X11:COSMIC:Apps/cosmic-ext-applet-apps-menu?expand=0&rev=2
This commit is contained in:
parent
e6368f4556
commit
32f4599aa4
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:b0bb811ff9df9267064e1b7115ecdf295c9630fa24eec27b67ca344c9d755526
|
oid sha256:35282d7b3e190e990e2629fdbf55df4dcde39a290f79d2a112e5173610e08658
|
||||||
size 335883
|
size 335371
|
||||||
|
@ -26,6 +26,7 @@ URL: https://github.com/leb-kuchen/apps-menu-applet-for-cosmic_tm
|
|||||||
Source0: %{name}-%{version}.tar.zst
|
Source0: %{name}-%{version}.tar.zst
|
||||||
Source1: vendor.tar.zst
|
Source1: vendor.tar.zst
|
||||||
Patch0: fix-binary-name.patch
|
Patch0: fix-binary-name.patch
|
||||||
|
Patch1: fix-justfile.patch
|
||||||
BuildRequires: cargo-packaging
|
BuildRequires: cargo-packaging
|
||||||
BuildRequires: hicolor-icon-theme
|
BuildRequires: hicolor-icon-theme
|
||||||
BuildRequires: just
|
BuildRequires: just
|
||||||
@ -49,9 +50,7 @@ BuildRequires: pkgconfig(xkbcommon)
|
|||||||
%{cargo_build}
|
%{cargo_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -Dm0755 target/release/cosmic-applet-apps-menu %{buildroot}%{_bindir}/%{name}
|
just rootdir=%{buildroot} prefix=%{_prefix} install
|
||||||
install -Dm0644 data/icons/scalable/apps/%{appname}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{appname}.svg
|
|
||||||
install -Dm0644 data/%{appname}.desktop %{buildroot}%{_datadir}/applications/%{appname}.desktop
|
|
||||||
%suse_update_desktop_file %{appname}
|
%suse_update_desktop_file %{appname}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -62,5 +61,6 @@ install -Dm0644 data/%{appname}.desktop %{buildroot}%{_datadir}/applications/%{a
|
|||||||
%doc README.md
|
%doc README.md
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_datadir}/applications/%{appname}.desktop
|
%{_datadir}/applications/%{appname}.desktop
|
||||||
|
%{_iconsdir}/hicolor/scalable/apps/%{appname}.svg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
16
fix-justfile.patch
Normal file
16
fix-justfile.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
diff -rub apps-menu-applet-for-cosmic_tm/justfile apps-menu-applet-for-cosmic_tm-patched/justfile
|
||||||
|
--- apps-menu-applet-for-cosmic_tm/justfile 2024-06-06 06:25:37.534920912 +0200
|
||||||
|
+++ apps-menu-applet-for-cosmic_tm-patched/justfile 2024-06-06 06:28:18.428249816 +0200
|
||||||
|
@@ -1,5 +1,8 @@
|
||||||
|
+rootdir := ''
|
||||||
|
+prefix := '/usr'
|
||||||
|
+
|
||||||
|
# Installs files into the system
|
||||||
|
install:
|
||||||
|
- sudo install -Dm0755 ./target/release/cosmic-applet-apps-menu /usr/bin/apps-menu-applet-for-cosmic_tm
|
||||||
|
- sudo install -Dm0644 data/dev.dominiccgeh.CosmicAppletAppsMenu.desktop /usr/share/applications/dev.dominiccgeh.CosmicAppletAppsMenu.desktop
|
||||||
|
- find 'data'/'icons' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} sudo install -Dm0644 'data'/'icons'/{} /usr/share/icons/hicolor/{}
|
||||||
|
\ No newline at end of file
|
||||||
|
+ install -Dm0755 ./target/release/cosmic-applet-apps-menu {{rootdir}}{{prefix}}/bin/cosmic-ext-applet-apps-menu
|
||||||
|
+ install -Dm0644 data/dev.dominiccgeh.CosmicAppletAppsMenu.desktop {{rootdir}}{{prefix}}/share/applications/dev.dominiccgeh.CosmicAppletAppsMenu.desktop
|
||||||
|
+ find 'data'/'icons' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} install -Dm0644 'data'/'icons'/{} {{rootdir}}{{prefix}}/share/icons/hicolor/{}
|
Loading…
Reference in New Issue
Block a user