wok-6.x diff slitaz-icon/receipt @ rev 7770

Add post_install and post_remove functions to librsvg receipt. This is to update loaders.cache file when its installed.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Dec 22 21:13:25 2010 +0000 (2010-12-22)
parents
children 9d438789a992
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/slitaz-icon/receipt	Wed Dec 22 21:13:25 2010 +0000
     1.3 @@ -0,0 +1,31 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="slitaz-icon"
     1.7 +VERSION="1.0"
     1.8 +CATEGORY="misc"
     1.9 +SHORT_DESC="SliTaz icons in size 16x16 and 32x32 (minimum)."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://www.slitaz.org/"
    1.13 +WGET_URL="http://mirror.slitaz.org/sources/artwok/$TARBALL"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr/share/icons
    1.19 +	cp -a $src/SliTaz $fs/usr/share/icons
    1.20 +	cp -a $src/themes/redyello/* $fs/usr/share/icons/SliTaz
    1.21 +	chown -R root.root $fs
    1.22 +}
    1.23 +
    1.24 +post_install()
    1.25 +{
    1.26 +	# Some desktop files anf boxes have hardcore path to some Tango
    1.27 +	# icons, so fake.
    1.28 +	if [ ! -d $1/usr/share/icons/Tango/16x16 ]; then
    1.29 +		cd $1/usr/share/icons && rm -rf Tango
    1.30 +		ln -s SliTaz Tango
    1.31 +	fi
    1.32 +	# Default icon theme to SliTaz.
    1.33 +	sed -i s/Tango/SliTaz/ $1/etc/skel/.gtkrc-2.0
    1.34 +}