- Add default configuration in /etc/xplr/
OBS-URL: https://build.opensuse.org/package/show/utilities/xplr?expand=0&rev=7
This commit is contained in:
parent
11357e4ca1
commit
730f074b97
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 9 09:10:56 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||
|
||||
- Add default configuration in /etc/xplr/
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 3 08:32:34 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
@ -42,6 +42,7 @@ scriptable, keyboard-controlled, real-time visual interface.
|
||||
%autosetup -a1
|
||||
mkdir -p .cargo
|
||||
cp %{SOURCE2} .cargo/config
|
||||
sed -i 's/-- version = "0.0.0"/version = "%{version}"/' src/init.lua
|
||||
|
||||
%build
|
||||
%{cargo_build}
|
||||
@ -52,6 +53,9 @@ cp %{SOURCE2} .cargo/config
|
||||
install -Dm644 -T \
|
||||
%{_builddir}/%{name}-%{version}/assets/desktop/%{name}.desktop \
|
||||
%{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
install -Dm644 -T \
|
||||
%{_builddir}/%{name}-%{version}/src/init.lua \
|
||||
%{buildroot}%{_sysconfdir}/%{name}/init.lua
|
||||
|
||||
for i in 128 16 32 64; do
|
||||
install -Dm644 "%{_builddir}/%{name}-%{version}/assets/icon/%{name}${i}.png" "%{buildroot}/%{_datadir}/icons/hicolor/${i}-${i}/apps/%{name}.png"
|
||||
@ -62,8 +66,12 @@ install -Dm644 "%{_builddir}/%{name}-%{version}/assets/icon/%{name}.svg" -t "%{b
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc CONTRIBUTING.md README.md RELEASE.md
|
||||
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/icons/*
|
||||
%{_datadir}/applications/*
|
||||
|
||||
%dir %{_sysconfdir}/%{name}
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/init.lua
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user