wok annotate faenza-icon-theme/receipt @ rev 24923

mutt: addgroup mail only when not already existing
author Hans-G?nter Theisgen
date Tue Apr 12 16:45:14 2022 +0100 (2022-04-12)
parents da18496ecada
children
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
pascal@24439 19 # What is the latest version available today?
pascal@24439 20 current_version()
pascal@24439 21 {
pascal@24439 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24439 23 sed "/latest/d;/${PACKAGE}_[0-9]/!d;/tar/!d;s|.*${PACKAGE}_||;s|.tar.*||" | sort -Vr | sed q
pascal@24439 24 }
pascal@24439 25
al@17951 26 # Rules to configure and make the package.
al@17951 27 compile_rules()
al@13649 28 {
al@17951 29 mkdir -p $install/usr/share/icons
al@17951 30 cd $install/usr/share/icons
Hans-G?nter@22715 31 # tar xf $src/Faenza.tar.gz
Hans-G?nter@22715 32 # tar xf $src/Faenza-Dark.tar.gz
Hans-G?nter@22715 33 # tar xf $src/Faenza-Darkest.tar.gz
Hans-G?nter@22715 34 # tar xf $src/Faenza-Darker.tar.gz
pascal@22721 35 cp -a $src/Faenza .
pascal@22721 36 cp -a $src/Faenza-Dark .
pascal@22721 37 cp -a $src/Faenza-Darker .
pascal@22721 38 cp -a $src/Faenza-Darkest .
al@17951 39 }
al@17951 40
al@17951 41 # Rules to gen a SliTaz package suitable for Tazpkg.
al@17951 42 genpkg_rules()
al@17951 43 {
Hans-G?nter@22715 44 cp -a $install/* $fs
Hans-G?nter@22715 45
al@13649 46 # remove big sizes and scalable
al@18589 47 rm -rf $(find $fs -type d -regex '.*/\(64\|96\|scalable\)')
Hans-G?nter@22715 48
al@13649 49 # remove emblems and extras
al@18589 50 rm -rf $(find $fs -type d -regex '.*/\(emblems\|extras\)')
al@17951 51 # sed -i '/Directories=/ s/\(.+\)\(,actions\/64.*\)/\1/' Faenza/index.theme
al@13649 52
Hans-G?nter@22715 53 for name in Faenza Faenza-Dark Faenza-Darkest Faenza-Darker
Hans-G?nter@22715 54 do
Hans-G?nter@22715 55 cp -f $stuff/${name}-index.theme \
Hans-G?nter@22715 56 $fs/usr/share/icons/${name}/index.theme
Hans-G?nter@22715 57 done
al@13649 58 }
al@13649 59
al@18586 60 qtfix='/usr/share/icons/hicolor/index.theme'
psychomaniak@17231 61
psychomaniak@17231 62 post_install()
psychomaniak@17231 63 {
al@18586 64 [ -s "$1$qtfix" ] &&
al@18586 65 sed '/Inherits=/s|=.*$|=Faenza|' -i "$1$qtfix"
al@18586 66 :
psychomaniak@17231 67 }
psychomaniak@17231 68
psychomaniak@17231 69 pre_remove()
psychomaniak@17231 70 {
al@18586 71 [ -s "$1$qtfix" ] &&
al@18586 72 sed '/Inherits=/s|=.*$|=SliTaz-Faenza|' -i "$1$qtfix"
al@18586 73 :
psychomaniak@17231 74 }