wok-next annotate slitaz-icon/receipt @ rev 20888
Check Repology info from q* to x* packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jul 14 17:43:03 2018 +0300 (2018-07-14) |
parents | c4e53a39395a |
children | d5aab818505e |
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@19588 | 9 WEB_SITE="http://www.slitaz.org/" |
al@20888 | 10 REPOLOGY="-" |
al@19588 | 11 |
al@16693 | 12 TARBALL="$PACKAGE-1.2.tar.gz" |
pankso@3081 | 13 WGET_URL="http://mirror.slitaz.org/sources/artwok/$TARBALL" |
pascal@19093 | 14 |
pascal@19093 | 15 BUILD_DEPENDS="faenza-icon-theme" |
pankso@3081 | 16 |
pankso@3081 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3081 | 18 genpkg_rules() |
pankso@3081 | 19 { |
pankso@3081 | 20 mkdir -p $fs/usr/share/icons |
pankso@3081 | 21 cp -a $src/SliTaz $fs/usr/share/icons |
al@16720 | 22 |
pankso@12177 | 23 # We use a new one provided by TazPanel |
pankso@12177 | 24 rm $fs/usr/share/icons/SliTaz/apps/22/tazpanel.png |
al@16720 | 25 |
al@16690 | 26 # fix icons for Yad |
al@16690 | 27 ln -s go-next.png $fs/usr/share/icons/SliTaz/actions/22/gtk-go-forward.png |
al@16690 | 28 ln -s go-previous.png $fs/usr/share/icons/SliTaz/actions/22/gtk-go-back.png |
al@16720 | 29 |
al@16720 | 30 # remove non-existent entities => faster icon search |
al@16720 | 31 rm -f $fs/usr/share/icons/SliTaz/index.theme |
al@16720 | 32 cp $stuff/index.theme $fs/usr/share/icons/SliTaz |
al@16720 | 33 |
al@16769 | 34 # return back gpicview icon |
al@16769 | 35 cp $WOK/faenza-icon-theme/taz/*/fs/usr/share/icons/Faenza/apps/22/eog.png \ |
al@16769 | 36 $fs/usr/share/icons/SliTaz/apps/22 |
al@16769 | 37 |
al@16720 | 38 # remove broken symlinks |
al@16720 | 39 for i in $(find $fs -type l); do |
al@16720 | 40 [ ! -e $i ] && rm -f $i |
al@16720 | 41 done |
al@16720 | 42 |
pankso@3081 | 43 chown -R root.root $fs |
pankso@3081 | 44 } |
pankso@3081 | 45 |
pankso@3081 | 46 post_install() |
pankso@3081 | 47 { |
pankso@9907 | 48 # Default icon theme to SliTaz. |
pascal@18730 | 49 if [ -f "$1/etc/skel/.gtkrc-2.0" ]; then |
pascal@18730 | 50 sed -i s/Tango/SliTaz/ "$1/etc/skel/.gtkrc-2.0" |
pankso@9912 | 51 fi |
pascal@18730 | 52 if readlink "$1/usr/share/icons/Tango"; then |
pascal@18730 | 53 rm "$1/usr/share/icons/Tango" |
pankso@3081 | 54 fi |
pankso@3081 | 55 } |