summaryrefslogtreecommitdiff
path: root/xfce-extra/thunar-dropbox/files/thunar-dropbox-0.2.0-wscript.patch
blob: cb43420537c135f103b65c2fca5e2dcc924ac4a0 (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
thunar-dropbox-0.2.0
Disable gtk-update-icon-cache, install library with proper permissions,
respect --libdir.
slawomir.nizio at sabayon.org
--- wscript
+++ wscript
@@ -13,11 +13,13 @@
 def set_options(opt):
 	opt.tool_options('compiler_cc')
 	opt.tool_options('gnu_dirs')
+	opt.add_option('--libdir', action='store', default="/usr/lib", help="libdir")
 
 def configure(conf):
 	conf.check_tool('compiler_cc')
 	conf.check_cfg(package='thunarx-2', uselib_store='THUNARX', mandatory=True, args='--cflags --libs')
 	conf.check_cfg(package='gio-2.0', uselib_store='GIO', mandatory=True, args='--cflags --libs')
+	conf.env.LIBDIR = Options.options.libdir
 
 def build(bld):
 	prog = bld.new_task_gen('cc', 'cshlib')
@@ -27,14 +29,4 @@
 	prog.includes = 'src'
 	prog.find_sources_in_dirs('src')
 	bld.install_files('${PREFIX}/share/icons/hicolor/16x16/apps', 'data/icons/hicolor/16x16/apps/thunar-dropbox.png')
-	bld.install_as('${PREFIX}/lib/thunarx-2/thunar-dropbox.so', 'libthunar-dropbox.so')
-
-def shutdown():
-	if Options.commands['install'] or Options.commands['uninstall']:
-		dir = '%s/share/icons/hicolor' % Build.bld.env['PREFIX']
-		command = 'gtk-update-icon-cache -q -t -f %s 2> /dev/null' % dir
-		try:
-			if Utils.exec_command(command):
-				Utils.pprint('YELLOW', 'Icon cache not updated.')
-		except:
-			pass
+	bld.install_as(bld.env.LIBDIR + '/thunarx-2/thunar-dropbox.so', 'libthunar-dropbox.so', chmod=0755)