aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorJason Woodward2005-11-18 01:49:25 +0000
committerJason Woodward2005-11-18 01:49:25 +0000
commit4a713752b08099069761e0aaac3023d99758f206 (patch)
tree7a3375817cae37a033130c6d52bfebfef9f98841 /Makefile.am
parent2200d2928b6cb8866ca7cadc04b09c0810ab0c65 (diff)
downloadgslapt-4a713752b08099069761e0aaac3023d99758f206.tar.gz
updated .desktop entry to NotShowIn KDE, added gslapt-kde.desktop
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 335959c..7d82857 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -15,6 +15,7 @@ install-data-local:
$(mkinstalldirs) $(DESTDIR)/$(datadir)/doc/@PACKAGE@ ; \
$(INSTALL_DATA) AUTHORS ChangeLog COPYING FAQ README $(DESTDIR)/$(datadir)/doc/@PACKAGE@ ; \
$(INSTALL_DATA) gslapt.desktop $(DESTDIR)/$(datadir)/applications/gslapt.desktop; \
+ $(INSTALL_DATA) gslapt-kde.desktop $(DESTDIR)/$(datadir)/applications/gslapt-kde.desktop; \
$(mkinstalldirs) $(DESTDIR)/$(datadir)/pixmaps; \
$(INSTALL_DATA) pixmaps/gslapt.png $(DESTDIR)/$(datadir)/pixmaps/; \
if test -d $(srcdir)/pixmaps; then \
@@ -43,9 +44,12 @@ pkg: all
install slack-required $(PKGDIR)/install/
-chown root:bin $(PKGDIR)/$(sbindir)
-chown root:bin $(PKGDIR)/$(sbindir)/@PACKAGE@
- @echo -n DESKTOPFILE= > $(PKGDIR)/install/doinst.sh
- @echo "$(DESTDIR)/$(datadir)/applications/gslapt.desktop" |sed -re "s/^\/+//" >> $(PKGDIR)/install/doinst.sh
+ @echo -n "for DESKTOPFILE in " > $(PKGDIR)/install/doinst.sh
+ @echo -n "$(DESTDIR)/$(datadir)/applications/gslapt.desktop " |sed -re "s/^\/+//" >> $(PKGDIR)/install/doinst.sh
+ @echo "$(DESTDIR)/$(datadir)/applications/gslapt-kde.desktop" |sed -re "s/^\/+//" >> $(PKGDIR)/install/doinst.sh
+ @echo "do" >> $(PKGDIR)/install/doinst.sh
@echo 'if [ -f $$DESKTOPFILE ]; then if [ -x usr/bin/gksudo ]; then sed -i.bak -re "s/(Exec=)(\/usr\/sbin\/gslapt)/\1gksudo \2/" $$DESKTOPFILE; elif [ -x usr/bin/gksu ]; then sed -i.bak -re "s/(Exec=)(\/usr\/sbin\/gslapt)/\1gksu \2/" $$DESKTOPFILE; elif [ -x usr/bin/gnomesu ]; then sed -i.bak -re "s/(Exec=)(\/usr\/sbin\/gslapt)/\1gnomesu \2/" $$DESKTOPFILE; elif [ -x usr/bin/kdesu ]; then sed -i.bak -re "s/(Exec=)(\/usr\/sbin\/gslapt)/\1kdesu \2/" $$DESKTOPFILE; fi; fi' >> $(PKGDIR)/install/doinst.sh
+ @echo "done" >> $(PKGDIR)/install/doinst.sh
@echo 'if [ -x usr/bin/update-desktop-database ]; then usr/bin/update-desktop-database &>/dev/null; fi' >> $(PKGDIR)/install/doinst.sh
strip --strip-unneeded $(PKGDIR)/$(sbindir)/@PACKAGE@
( cd $(PKGDIR) && /sbin/makepkg -l y -c n @PACKAGE@-@VERSION@-@host_cpu@-1.tgz )