wok-next view faenza-icon-theme/receipt @ rev 17916

fontforge: add desktop integration, remove included fonts.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 09 10:20:05 2015 +0300 (2015-04-09)
parents 92f6d4a38df0
children b37f3d8e81b6
line source
1 # SliTaz package receipt.
3 PACKAGE="faenza-icon-theme"
4 VERSION="1.3"
5 CATEGORY="x-window"
6 SHORT_DESC="Faenza icon theme"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 TARBALL="${PACKAGE}_$VERSION.zip"
10 WEB_SITE="http://tiheum.deviantart.com/art/Faenza-Icons-173323228"
11 WGET_URL="http://dl.dropbox.com/u/9966975/$TARBALL"
13 DEPENDS=""
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/share/icons
19 cd $fs/usr/share/icons
20 tar xf $src/Faenza.tar.gz
21 tar xf $src/Faenza-Dark.tar.gz
22 tar xf $src/Faenza-Darkest.tar.gz
23 tar xf $src/Faenza-Darker.tar.gz
24 # remove big sizes and scalable
25 rm -rf $(find . -type d -regex '.*/\(64\|96\|scalable\)')
26 # remove emblems and extras
27 rm -rf $(find . -type d -regex '.*/\(emblems\|extras\)')
28 # sed -i '/Directories=/ s/\(.+\)\(,actions\/64.*\)/\1/' Faenza/index.theme
30 for name in Faenza Faenza-Dark Faenza-Darkest Faenza-Darker; do
31 cp -f $stuff/${name}-index.theme $fs/usr/share/icons/${name}/index.theme
32 done
33 }
35 qtfix="usr/share/icons/hicolor/index.theme"
37 post_install()
38 {
39 [ -s $1/$qtfix ] &&
40 sed '/Inherits=/s|=.*$|=Faenza|' -i $1/$qtfix
41 }
43 pre_remove()
44 {
45 [ -s $1/$qtfix ] &&
46 sed '/Inherits=/s|=.*$|=SliTaz|' -i $1/$qtfix
47 }