wok-6.x annotate slitaz-icon/receipt @ rev 3459

get-softmodem-driver: simplifying the build process
author Dominique Corbex <domcox@users.sourceforge.net>
date Mon Jun 15 21:45:58 2009 +0200 (2009-06-15)
parents
children 9d438789a992
rev   line source
pankso@3081 1 # SliTaz package receipt.
pankso@3081 2
pankso@3081 3 PACKAGE="slitaz-icon"
pankso@3081 4 VERSION="1.0"
pankso@3081 5 CATEGORY="misc"
pankso@3081 6 SHORT_DESC="SliTaz icons in size 16x16 and 32x32 (minimum)."
pankso@3081 7 MAINTAINER="pankso@slitaz.org"
pankso@3081 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@3081 9 WEB_SITE="http://www.slitaz.org/"
pankso@3081 10 WGET_URL="http://mirror.slitaz.org/sources/artwok/$TARBALL"
pankso@3081 11
pankso@3081 12 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3081 13 genpkg_rules()
pankso@3081 14 {
pankso@3081 15 mkdir -p $fs/usr/share/icons
pankso@3081 16 cp -a $src/SliTaz $fs/usr/share/icons
pankso@3081 17 cp -a $src/themes/redyello/* $fs/usr/share/icons/SliTaz
pankso@3081 18 chown -R root.root $fs
pankso@3081 19 }
pankso@3081 20
pankso@3081 21 post_install()
pankso@3081 22 {
pankso@3081 23 # Some desktop files anf boxes have hardcore path to some Tango
pankso@3081 24 # icons, so fake.
pankso@3081 25 if [ ! -d $1/usr/share/icons/Tango/16x16 ]; then
pankso@3081 26 cd $1/usr/share/icons && rm -rf Tango
pankso@3081 27 ln -s SliTaz Tango
pankso@3081 28 fi
pankso@3081 29 # Default icon theme to SliTaz.
pankso@3081 30 sed -i s/Tango/SliTaz/ $1/etc/skel/.gtkrc-2.0
pankso@3081 31 }