File gonvert-0.2.20-Makefile.patch of Package gonvert

Index: Makefile
===================================================================
--- Makefile.orig
+++ Makefile
@@ -1,13 +1,13 @@
 NAME=gonvert
 
 #Get version number from source file
-VERSION=$(shell head -3 $(NAME) | grep version | cut -d\" -f2)
+VERSION=$(shell head -n 3 $(NAME) | grep version | cut -d\" -f2)
 
 #DESTDIR can be defined when calling make ie. make install DESTDIR=$RPM_BUILD_ROOT
-prefix  = /usr/local
+prefix  = /usr
 bindir  = $(prefix)/bin
 datadir = $(prefix)/share
-docdir  = $(datadir)/doc
+docdir  = $(datadir)/doc/packages
 
 DESTDIR =
 
@@ -18,7 +18,7 @@ install:
 	install -D -m0644 gonvert.glade $(DESTDIR)$(datadir)/gonvert/gonvert.glade
 	install -d -m0755 $(DESTDIR)$(datadir)/pixmaps/
 	install -m0644 pixmaps/*.png $(DESTDIR)$(datadir)/pixmaps/
-	install -D -m0644 gonvert.desktop $(DESTDIR)$(datadir)/gnome/apps/Utilities/gonvert.desktop
+	install -D -m0644 gonvert.desktop $(DESTDIR)$(datadir)/applications/gonvert.desktop
 	install -d -m0755 $(DESTDIR)$(docdir)/gonvert/
 	install -m0644 doc/* $(DESTDIR)$(docdir)/gonvert/
 
@@ -37,8 +37,8 @@ uninstall:
 	rm -f  $(bindir)/gonvert
 	rm -rf $(datadir)/gonvert*
 	rm -rf $(docdir)/gonvert*
-	rm -f /usr/share/gnome/apps/Utilities/$(NAME).desktop
-	rm -f /usr/share/pixmaps/$(NAME).png
+	rm -f $(datadir)/applications/$(NAME).desktop
+	rm -f $(datadir)/pixmaps/$(NAME).png
 
 uninstall_pl:
 	#specify project name manually to prevent removal of all directories
openSUSE Build Service is sponsored by