wok-6.x annotate faenza-icon-theme/receipt @ rev 18050
Up openssh (6.8p1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 15 09:55:50 2015 +0200 (2015-05-15) |
parents | 3a3945a92524 |
children | 2e80ff20fdf2 |
rev | line source |
---|---|
al@13649 | 1 # SliTaz package receipt. |
al@13649 | 2 |
al@13649 | 3 PACKAGE="faenza-icon-theme" |
al@13649 | 4 VERSION="1.3" |
al@13649 | 5 CATEGORY="x-window" |
al@13649 | 6 SHORT_DESC="Faenza icon theme" |
al@13649 | 7 MAINTAINER="al.bobylev@gmail.com" |
pascal@14999 | 8 LICENSE="GPL3" |
al@13649 | 9 TARBALL="${PACKAGE}_$VERSION.zip" |
al@13649 | 10 WEB_SITE="http://tiheum.deviantart.com/art/Faenza-Icons-173323228" |
al@13649 | 11 WGET_URL="http://dl.dropbox.com/u/9966975/$TARBALL" |
al@13649 | 12 |
pascal@14999 | 13 DEPENDS="" |
pascal@14999 | 14 |
al@17951 | 15 # Rules to configure and make the package. |
al@17951 | 16 compile_rules() |
al@13649 | 17 { |
al@17951 | 18 mkdir -p $install/usr/share/icons |
al@17951 | 19 cd $install/usr/share/icons |
al@13649 | 20 tar xf $src/Faenza.tar.gz |
al@13649 | 21 tar xf $src/Faenza-Dark.tar.gz |
al@13649 | 22 tar xf $src/Faenza-Darkest.tar.gz |
al@13649 | 23 tar xf $src/Faenza-Darker.tar.gz |
al@17951 | 24 } |
al@17951 | 25 |
al@17951 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@17951 | 27 genpkg_rules() |
al@17951 | 28 { |
al@17951 | 29 cp -a $install/* $fs |
al@13649 | 30 # remove big sizes and scalable |
al@13649 | 31 rm -rf $(find . -type d -regex '.*/\(64\|96\|scalable\)') |
al@13649 | 32 # remove emblems and extras |
al@13649 | 33 rm -rf $(find . -type d -regex '.*/\(emblems\|extras\)') |
al@17951 | 34 # sed -i '/Directories=/ s/\(.+\)\(,actions\/64.*\)/\1/' Faenza/index.theme |
al@13649 | 35 |
al@13649 | 36 for name in Faenza Faenza-Dark Faenza-Darkest Faenza-Darker; do |
al@13649 | 37 cp -f $stuff/${name}-index.theme $fs/usr/share/icons/${name}/index.theme |
al@13649 | 38 done |
al@13649 | 39 } |
al@13649 | 40 |
psychomaniak@17231 | 41 qtfix="usr/share/icons/hicolor/index.theme" |
psychomaniak@17231 | 42 |
psychomaniak@17231 | 43 post_install() |
psychomaniak@17231 | 44 { |
pascal@17403 | 45 [ -s $1/$qtfix ] && |
psychomaniak@17231 | 46 sed '/Inherits=/s|=.*$|=Faenza|' -i $1/$qtfix |
psychomaniak@17231 | 47 } |
psychomaniak@17231 | 48 |
psychomaniak@17231 | 49 pre_remove() |
psychomaniak@17231 | 50 { |
pascal@17403 | 51 [ -s $1/$qtfix ] && |
psychomaniak@17231 | 52 sed '/Inherits=/s|=.*$|=SliTaz|' -i $1/$qtfix |
psychomaniak@17231 | 53 } |