summaryrefslogtreecommitdiffstats
path: root/redhat/applications/knights
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2020-09-06 19:27:42 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2020-09-07 21:02:08 +0200
commit424e58e3209c8ce130983d7d38d4c1ad535d2dbc (patch)
treec3257e85dfcd1c8b9bd9a5c3d412c113a0e5c9a2 /redhat/applications/knights
parentead24dc5421b41a04a0c33dcd2a8e2e733cccc3c (diff)
downloadtde-packaging-424e58e3209c8ce130983d7d38d4c1ad535d2dbc.tar.gz
tde-packaging-424e58e3209c8ce130983d7d38d4c1ad535d2dbc.zip
RPM: update desktop and lang files location
Diffstat (limited to 'redhat/applications/knights')
-rw-r--r--redhat/applications/knights/knights.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/redhat/applications/knights/knights.spec b/redhat/applications/knights/knights.spec
index 9bde2f66b..ad7bf843e 100644
--- a/redhat/applications/knights/knights.spec
+++ b/redhat/applications/knights/knights.spec
@@ -157,6 +157,13 @@ export PATH="%{tde_bindir}:${PATH}"
%find_lang %{tde_pkg}
+# Fix desktop icon location
+if [ -d "%{?buildroot}%{tde_datadir}/applnk" ]; then
+ %__mkdir_p "%{?buildroot}%{tde_tdeappdir}"
+ %__mv -f "%{?buildroot}%{tde_datadir}/applnk/Games/Board/knights.desktop" "%{?buildroot}%{tde_tdeappdir}"
+ %__rm -r "%{buildroot}%{tde_datadir}/applnk"
+fi
+
%clean
%__rm -rf %{buildroot}
@@ -165,7 +172,7 @@ export PATH="%{tde_bindir}:${PATH}"
%files -f %{tde_pkg}.lang
%defattr(-,root,root,-)
%{tde_bindir}/knights
-%{tde_datadir}/applnk/Games/Board/knights.desktop
+%{tde_tdeappdir}/knights.desktop
%{tde_datadir}/apps/knights
%{tde_tdedocdir}/HTML/*/knights
%{tde_datadir}/icons/hicolor/*/*/*.png