wok-6.x view slitaz-icon/receipt @ rev 18730
Quote root dir in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 20 15:13:45 2015 +0100 (2015-12-20) |
parents | 9f76efb02071 |
children | 2282cb3628dd |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-icon"
4 VERSION="1.2.1"
5 CATEGORY="misc"
6 SHORT_DESC="SliTaz icons in size 22x22 and 32x32 (minimum)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-1.2.tar.gz"
10 WEB_SITE="http://www.slitaz.org/"
11 WGET_URL="http://mirror.slitaz.org/sources/artwok/$TARBALL"
12 HOST_ARCH="i486 arm"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr/share/icons
18 cp -a $src/SliTaz $fs/usr/share/icons
20 # We use a new one provided by TazPanel
21 rm $fs/usr/share/icons/SliTaz/apps/22/tazpanel.png
23 # fix icons for Yad
24 ln -s go-next.png $fs/usr/share/icons/SliTaz/actions/22/gtk-go-forward.png
25 ln -s go-previous.png $fs/usr/share/icons/SliTaz/actions/22/gtk-go-back.png
27 # remove non-existent entities => faster icon search
28 rm -f $fs/usr/share/icons/SliTaz/index.theme
29 cp $stuff/index.theme $fs/usr/share/icons/SliTaz
31 # return back gpicview icon
32 cp $WOK/faenza-icon-theme/taz/*/fs/usr/share/icons/Faenza/apps/22/eog.png \
33 $fs/usr/share/icons/SliTaz/apps/22
35 # remove broken symlinks
36 for i in $(find $fs -type l); do
37 [ ! -e $i ] && rm -f $i
38 done
40 chown -R root.root $fs
41 }
43 post_install()
44 {
45 # Default icon theme to SliTaz.
46 if [ -f "$1/etc/skel/.gtkrc-2.0" ]; then
47 sed -i s/Tango/SliTaz/ "$1/etc/skel/.gtkrc-2.0"
48 fi
49 if readlink "$1/usr/share/icons/Tango"; then
50 rm "$1/usr/share/icons/Tango"
51 fi
52 }