# -*-shell-script-*- [Meta] RootName: @clearlooks.sourceforge.net/clearlooks:$SOFTWAREVERSION DisplayName: Clearlooks GTK+ 2.x Engine ShortName: clearlooks-engine Maintainer: Richard Stellingwerff Packager: Richard Stellingwerff Summary: A sexy GTK+ 2.0 engine/theme. URL: http://clearlooks.sourceforge.net/ License: GNU General Public License, Version 2 SoftwareVersion: @VERSION@ AutopackageTarget: 1.0 # Only uncomment InterfaceVersion if your package exposes interfaces to other software, # for instance if it includes DSOs or python/perl modules. See the developer guide for more info, # or ask on autopackage-dev if you don't understand interface versioning in autopackage. # # InterfaceVersion: 0.0 [Description] Clearlooks is a fresh looking theme for the GTK+ 2.x environment. [BuildPrepare] prepareBuild --enable-animation [BuildUnprepare] unprepareBuild [Imports] echo '*' | import [Prepare] require @gtk.org/gtk 2.4 [Install] gtk_version="2.4.0" gtk_path=/$(/sbin/ldconfig -p|grep gtk-x11-2.0 | awk '{print $4}'| head -n 1 | awk -F / '{print $2}') if [ $gtk_path = "//" -o $gtk_path = "/" ] then exit 1 fi if [ -f $gtk_path/lib/gtk-2.0/$gtk_version/engines/libclearlooks.so ] then rm -f $gtk_path/lib/gtk-2.0/$gtk_version/engines/libclearlooks.so fi copyFiles share $gtk_path copyFiles lib $gtk_path [Uninstall] # Usually just the following line is enough to uninstall everything uninstallFromLog