wok-next view slitaz-icon/receipt @ rev 19734

Up cookutils(905) (v2)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 27 16:29:45 2017 +0300 (2017-05-27)
parents 2282cb3628dd
children c4e53a39395a
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 WEB_SITE="http://www.slitaz.org/"
10 HOST_ARCH="any"
12 TARBALL="$PACKAGE-1.2.tar.gz"
13 WGET_URL="http://mirror.slitaz.org/sources/artwok/$TARBALL"
15 BUILD_DEPENDS="faenza-icon-theme"
17 # Rules to gen a SliTaz package suitable for Tazpkg.
18 genpkg_rules()
19 {
20 mkdir -p $fs/usr/share/icons
21 cp -a $src/SliTaz $fs/usr/share/icons
23 # We use a new one provided by TazPanel
24 rm $fs/usr/share/icons/SliTaz/apps/22/tazpanel.png
26 # fix icons for Yad
27 ln -s go-next.png $fs/usr/share/icons/SliTaz/actions/22/gtk-go-forward.png
28 ln -s go-previous.png $fs/usr/share/icons/SliTaz/actions/22/gtk-go-back.png
30 # remove non-existent entities => faster icon search
31 rm -f $fs/usr/share/icons/SliTaz/index.theme
32 cp $stuff/index.theme $fs/usr/share/icons/SliTaz
34 # return back gpicview icon
35 cp $WOK/faenza-icon-theme/taz/*/fs/usr/share/icons/Faenza/apps/22/eog.png \
36 $fs/usr/share/icons/SliTaz/apps/22
38 # remove broken symlinks
39 for i in $(find $fs -type l); do
40 [ ! -e $i ] && rm -f $i
41 done
43 chown -R root.root $fs
44 }
46 post_install()
47 {
48 # Default icon theme to SliTaz.
49 if [ -f "$1/etc/skel/.gtkrc-2.0" ]; then
50 sed -i s/Tango/SliTaz/ "$1/etc/skel/.gtkrc-2.0"
51 fi
52 if readlink "$1/usr/share/icons/Tango"; then
53 rm "$1/usr/share/icons/Tango"
54 fi
55 }