summarylogtreecommitdiffstats
path: root/makefile-roundup.patch
blob: d0d211e8b2035761674432b79a4bf7be1f2eeafa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- src/makefile	2015-10-22 22:12:09.111700293 +0200
+++ src/makefile	2015-10-22 22:12:29.688347815 +0200
@@ -11,7 +11,7 @@
 
 all:
 	#build binaries
-	valac -X -D'GETTEXT_PACKAGE="${app_name}"' --Xcc="-lm" -X -Wl,-rpath,/usr/share/${app_name}/libs "Main.vala" "MainWindow.vala" "EditWidgetWindow.vala" "EditThemeWindow.vala" "SettingsWindow.vala" "DonationWindow.vala" "GeneratePreviewWindow.vala" "AboutWindow.vala" "Utility.vala" -o ${app_name} --pkg glib-2.0 --pkg gio-unix-2.0 --pkg posix --pkg gtk+-3.0 --pkg gee-0.8 --pkg json-glib-1.0 
+	valac -X -D'GETTEXT_PACKAGE="${app_name}"' --Xcc="-lm"  "Main.vala" "MainWindow.vala" "EditWidgetWindow.vala" "EditThemeWindow.vala" "SettingsWindow.vala" "DonationWindow.vala" "GeneratePreviewWindow.vala" "AboutWindow.vala" "Utility.vala" -o ${app_name} --pkg glib-2.0 --pkg gio-unix-2.0 --pkg posix --pkg gtk+-3.0 --pkg gee-0.8 --pkg json-glib-1.0 
 	
 	#update translation template
 	xgettext --language=C --keyword=_ --copyright-holder='Tony George (teejee2008@gmail.com)' --package-name='${app_name}' --package-version='2.0' --msgid-bugs-address='teejee2008@gmail.com' --escape --sort-output -o ../${app_name}.pot *.vala
@@ -29,20 +29,20 @@
 	
 	#binary
 	install -m 0755 ${app_name} "$(DESTDIR)$(bindir)"
-	install -m 0755 ${app_name}-uninstall "$(DESTDIR)$(bindir)"
 	
 	#launcher
-	install -m 0755 ${app_name}.desktop "$(DESTDIR)$(launcherdir)"
+	install -m 644 ${app_name}.desktop "$(DESTDIR)$(launcherdir)"
 	
 	#app icon
-	install -m 0755 share/pixmaps/${app_name}.png "$(DESTDIR)$(sharedir)/pixmaps"
+	install -m 644 share/pixmaps/${app_name}.png "$(DESTDIR)$(sharedir)/pixmaps"
 	
 	#appdata.xml
-	install -m 0755 ${app_name}.appdata.xml "$(DESTDIR)$(sharedir)/appdata"
+	install -m 644 ${app_name}.appdata.xml "$(DESTDIR)$(sharedir)/appdata"
 	
 	#shared files
 	cp -dpr --no-preserve=ownership -t "$(DESTDIR)$(sharedir)/${app_name}" ./share/${app_name}/*
-	chmod --recursive 0755 $(DESTDIR)$(sharedir)/${app_name}/*
+	chmod --recursive 644 $(DESTDIR)$(sharedir)/${app_name}/*
+	find $(DESTDIR)$(sharedir)/${app_name} -type d -exec chmod +x '{}' +
 	
 	#translations
 	mkdir -p "$(DESTDIR)$(localedir)/cs_CZ/LC_MESSAGES"
@@ -54,7 +54,6 @@
 uninstall:
 	#binary
 	rm -f "$(DESTDIR)$(bindir)/${app_name}"
-	rm -f "$(DESTDIR)$(bindir)/${app_name}-uninstall"
 	
 	#launcher
 	rm -f "$(DESTDIR)$(launcherdir)/${app_name}.desktop"