wok annotate slitaz-icon/receipt @ rev 25656
Up fwknop (2.6.11)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 09 11:08:06 2024 +0000 (7 months ago) |
parents | 2282cb3628dd |
children |
rev | line source |
---|---|
pankso@3081 | 1 # SliTaz package receipt. |
pankso@3081 | 2 |
pankso@3081 | 3 PACKAGE="slitaz-icon" |
al@16690 | 4 VERSION="1.2.1" |
pankso@3081 | 5 CATEGORY="misc" |
pankso@11745 | 6 SHORT_DESC="SliTaz icons in size 22x22 and 32x32 (minimum)." |
pankso@3081 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL3" |
al@16693 | 9 TARBALL="$PACKAGE-1.2.tar.gz" |
pankso@3081 | 10 WEB_SITE="http://www.slitaz.org/" |
pankso@3081 | 11 WGET_URL="http://mirror.slitaz.org/sources/artwok/$TARBALL" |
pascal@19093 | 12 HOST_ARCH="any" |
pascal@19093 | 13 |
pascal@19093 | 14 BUILD_DEPENDS="faenza-icon-theme" |
pankso@3081 | 15 |
pascal@24505 | 16 # What is the latest version available today? |
pascal@24505 | 17 current_version() |
pascal@24505 | 18 { |
pascal@24505 | 19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24505 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24505 | 21 } |
pascal@24505 | 22 |
pankso@3081 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3081 | 24 genpkg_rules() |
pankso@3081 | 25 { |
pankso@3081 | 26 mkdir -p $fs/usr/share/icons |
pankso@3081 | 27 cp -a $src/SliTaz $fs/usr/share/icons |
al@16720 | 28 |
pankso@12177 | 29 # We use a new one provided by TazPanel |
pankso@12177 | 30 rm $fs/usr/share/icons/SliTaz/apps/22/tazpanel.png |
al@16720 | 31 |
al@16690 | 32 # fix icons for Yad |
al@16690 | 33 ln -s go-next.png $fs/usr/share/icons/SliTaz/actions/22/gtk-go-forward.png |
al@16690 | 34 ln -s go-previous.png $fs/usr/share/icons/SliTaz/actions/22/gtk-go-back.png |
al@16720 | 35 |
al@16720 | 36 # remove non-existent entities => faster icon search |
al@16720 | 37 rm -f $fs/usr/share/icons/SliTaz/index.theme |
al@16720 | 38 cp $stuff/index.theme $fs/usr/share/icons/SliTaz |
al@16720 | 39 |
al@16769 | 40 # return back gpicview icon |
al@16769 | 41 cp $WOK/faenza-icon-theme/taz/*/fs/usr/share/icons/Faenza/apps/22/eog.png \ |
al@16769 | 42 $fs/usr/share/icons/SliTaz/apps/22 |
al@16769 | 43 |
al@16720 | 44 # remove broken symlinks |
al@16720 | 45 for i in $(find $fs -type l); do |
al@16720 | 46 [ ! -e $i ] && rm -f $i |
al@16720 | 47 done |
al@16720 | 48 |
pankso@3081 | 49 chown -R root.root $fs |
pankso@3081 | 50 } |
pankso@3081 | 51 |
pankso@3081 | 52 post_install() |
pankso@3081 | 53 { |
pankso@9907 | 54 # Default icon theme to SliTaz. |
pascal@18730 | 55 if [ -f "$1/etc/skel/.gtkrc-2.0" ]; then |
pascal@18730 | 56 sed -i s/Tango/SliTaz/ "$1/etc/skel/.gtkrc-2.0" |
pankso@9912 | 57 fi |
pascal@18730 | 58 if readlink "$1/usr/share/icons/Tango"; then |
pascal@18730 | 59 rm "$1/usr/share/icons/Tango" |
pankso@3081 | 60 fi |
pankso@3081 | 61 } |