wok view slitaz-icon/receipt @ rev 24955

updated nano and nano-doc (4.8 -> 6.2)
author Hans-G?nter Theisgen
date Sat Apr 23 16:34:46 2022 +0100 (2022-04-23)
parents 2282cb3628dd
children
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="any"
14 BUILD_DEPENDS="faenza-icon-theme"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/share/icons
27 cp -a $src/SliTaz $fs/usr/share/icons
29 # We use a new one provided by TazPanel
30 rm $fs/usr/share/icons/SliTaz/apps/22/tazpanel.png
32 # fix icons for Yad
33 ln -s go-next.png $fs/usr/share/icons/SliTaz/actions/22/gtk-go-forward.png
34 ln -s go-previous.png $fs/usr/share/icons/SliTaz/actions/22/gtk-go-back.png
36 # remove non-existent entities => faster icon search
37 rm -f $fs/usr/share/icons/SliTaz/index.theme
38 cp $stuff/index.theme $fs/usr/share/icons/SliTaz
40 # return back gpicview icon
41 cp $WOK/faenza-icon-theme/taz/*/fs/usr/share/icons/Faenza/apps/22/eog.png \
42 $fs/usr/share/icons/SliTaz/apps/22
44 # remove broken symlinks
45 for i in $(find $fs -type l); do
46 [ ! -e $i ] && rm -f $i
47 done
49 chown -R root.root $fs
50 }
52 post_install()
53 {
54 # Default icon theme to SliTaz.
55 if [ -f "$1/etc/skel/.gtkrc-2.0" ]; then
56 sed -i s/Tango/SliTaz/ "$1/etc/skel/.gtkrc-2.0"
57 fi
58 if readlink "$1/usr/share/icons/Tango"; then
59 rm "$1/usr/share/icons/Tango"
60 fi
61 }