wok-current annotate faenza-icon-theme/receipt @ rev 18586

Up tazpkg-test(857); faenza-icon-theme: fix post_install() and pre_remove()
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Nov 12 20:15:39 2015 +0200 (2015-11-12)
parents b37f3d8e81b6
children 74315f5518fa
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
al@18586 41 qtfix='/usr/share/icons/hicolor/index.theme'
psychomaniak@17231 42
psychomaniak@17231 43 post_install()
psychomaniak@17231 44 {
al@18586 45 [ -s "$1$qtfix" ] &&
al@18586 46 sed '/Inherits=/s|=.*$|=Faenza|' -i "$1$qtfix"
al@18586 47 :
psychomaniak@17231 48 }
psychomaniak@17231 49
psychomaniak@17231 50 pre_remove()
psychomaniak@17231 51 {
al@18586 52 [ -s "$1$qtfix" ] &&
al@18586 53 sed '/Inherits=/s|=.*$|=SliTaz-Faenza|' -i "$1$qtfix"
al@18586 54 :
psychomaniak@17231 55 }