1# -*-shell-script-*-
2
3[Meta]
4RootName: @clearlooks.sourceforge.net/clearlooks:$SOFTWAREVERSION
5DisplayName: Clearlooks GTK+ 2.x Engine
6ShortName: clearlooks-engine
7Maintainer: Richard Stellingwerff <remenic@gmail.com>
8Packager: Richard Stellingwerff <remenic@gmail.com>
9Summary: A sexy GTK+ 2.0 engine/theme.
10URL: http://clearlooks.sourceforge.net/
11License: GNU General Public License, Version 2
12SoftwareVersion: @VERSION@
13AutopackageTarget: 1.0
14
15# Only uncomment InterfaceVersion if your package exposes interfaces to other software,
16# for instance if it includes DSOs or python/perl modules. See the developer guide for more info,
17# or ask on autopackage-dev if you don't understand interface versioning in autopackage.
18#
19# InterfaceVersion: 0.0
20
21[Description]
22Clearlooks is a fresh looking theme for the GTK+ 2.x environment.
23
24[BuildPrepare]
25prepareBuild --enable-animation
26
27[BuildUnprepare]
28unprepareBuild
29
30[Imports]
31echo '*' | import
32
33[Prepare]
34require @gtk.org/gtk 2.4
35
36[Install]
37gtk_version="2.4.0"
38gtk_path=/$(/sbin/ldconfig -p|grep gtk-x11-2.0 | awk '{print $4}'| head -n 1 | awk -F / '{print $2}')
39
40if [ $gtk_path = "//" -o $gtk_path = "/" ]
41then
42        exit 1
43fi
44
45if [ -f $gtk_path/lib/gtk-2.0/$gtk_version/engines/libclearlooks.so ]
46then
47        rm -f $gtk_path/lib/gtk-2.0/$gtk_version/engines/libclearlooks.so
48fi
49
50copyFiles share $gtk_path
51copyFiles lib $gtk_path
52
53[Uninstall]
54# Usually just the following line is enough to uninstall everything
55uninstallFromLog
56