wok-6.x annotate faenza-icon-theme/receipt @ rev 22721

faenza-icon-theme: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 22 17:28:23 2020 +0100 (2020-01-22)
parents 0bd1d2cc2359
children bfabe25c21ff
rev   line source
al@13649 1 # SliTaz package receipt.
al@13649 2
al@13649 3 PACKAGE="faenza-icon-theme"
Hans-G?nter@22715 4 VERSION="1.3.1"
al@19126 5 CATEGORY="customization"
Hans-G?nter@22715 6 SHORT_DESC="Faenza icon theme."
al@13649 7 MAINTAINER="al.bobylev@gmail.com"
pascal@14999 8 LICENSE="GPL3"
Hans-G?nter@22715 9 WEB_SITE="https://deviantart.com/tiheum/art/Faenza-Icons-173323228"
Hans-G?nter@22715 10
Hans-G?nter@22715 11 TARBALL="${PACKAGE}_$VERSION.tar.gz"
al@13649 12 WGET_URL="http://dl.dropbox.com/u/9966975/$TARBALL"
Hans-G?nter@22715 13 WGET_URL="http://ppa.launchpad.net/tiheum/equinox/ubuntu/pool/main/f/$PACKAGE/$TARBALL"
al@13649 14
pascal@14999 15 DEPENDS=""
pascal@14999 16
Hans-G?nter@22715 17 HOST_ARCH="any"
Hans-G?nter@22715 18
al@17951 19 # Rules to configure and make the package.
al@17951 20 compile_rules()
al@13649 21 {
al@17951 22 mkdir -p $install/usr/share/icons
al@17951 23 cd $install/usr/share/icons
Hans-G?nter@22715 24 # tar xf $src/Faenza.tar.gz
Hans-G?nter@22715 25 # tar xf $src/Faenza-Dark.tar.gz
Hans-G?nter@22715 26 # tar xf $src/Faenza-Darkest.tar.gz
Hans-G?nter@22715 27 # tar xf $src/Faenza-Darker.tar.gz
pascal@22721 28 cp -a $src/Faenza .
pascal@22721 29 cp -a $src/Faenza-Dark .
pascal@22721 30 cp -a $src/Faenza-Darker .
pascal@22721 31 cp -a $src/Faenza-Darkest .
al@17951 32 }
al@17951 33
al@17951 34 # Rules to gen a SliTaz package suitable for Tazpkg.
al@17951 35 genpkg_rules()
al@17951 36 {
Hans-G?nter@22715 37 cp -a $install/* $fs
Hans-G?nter@22715 38
al@13649 39 # remove big sizes and scalable
al@18589 40 rm -rf $(find $fs -type d -regex '.*/\(64\|96\|scalable\)')
Hans-G?nter@22715 41
al@13649 42 # remove emblems and extras
al@18589 43 rm -rf $(find $fs -type d -regex '.*/\(emblems\|extras\)')
al@17951 44 # sed -i '/Directories=/ s/\(.+\)\(,actions\/64.*\)/\1/' Faenza/index.theme
al@13649 45
Hans-G?nter@22715 46 for name in Faenza Faenza-Dark Faenza-Darkest Faenza-Darker
Hans-G?nter@22715 47 do
Hans-G?nter@22715 48 cp -f $stuff/${name}-index.theme \
Hans-G?nter@22715 49 $fs/usr/share/icons/${name}/index.theme
Hans-G?nter@22715 50 done
al@13649 51 }
al@13649 52
al@18586 53 qtfix='/usr/share/icons/hicolor/index.theme'
psychomaniak@17231 54
psychomaniak@17231 55 post_install()
psychomaniak@17231 56 {
al@18586 57 [ -s "$1$qtfix" ] &&
al@18586 58 sed '/Inherits=/s|=.*$|=Faenza|' -i "$1$qtfix"
al@18586 59 :
psychomaniak@17231 60 }
psychomaniak@17231 61
psychomaniak@17231 62 pre_remove()
psychomaniak@17231 63 {
al@18586 64 [ -s "$1$qtfix" ] &&
al@18586 65 sed '/Inherits=/s|=.*$|=SliTaz-Faenza|' -i "$1$qtfix"
al@18586 66 :
psychomaniak@17231 67 }