wok view faenza-icon-theme/receipt @ rev 18589
faenza-icon-theme: don't remove icons in $install
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 13 02:44:43 2015 +0200 (2015-11-13) |
parents | 2e80ff20fdf2 |
children | 2282cb3628dd |
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 configure and make the package.
16 compile_rules()
17 {
18 mkdir -p $install/usr/share/icons
19 cd $install/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 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 cp -a $install/* $fs
30 # remove big sizes and scalable
31 rm -rf $(find $fs -type d -regex '.*/\(64\|96\|scalable\)')
32 # remove emblems and extras
33 rm -rf $(find $fs -type d -regex '.*/\(emblems\|extras\)')
34 # sed -i '/Directories=/ s/\(.+\)\(,actions\/64.*\)/\1/' Faenza/index.theme
36 for name in Faenza Faenza-Dark Faenza-Darkest Faenza-Darker; do
37 cp -f $stuff/${name}-index.theme $fs/usr/share/icons/${name}/index.theme
38 done
39 }
41 qtfix='/usr/share/icons/hicolor/index.theme'
43 post_install()
44 {
45 [ -s "$1$qtfix" ] &&
46 sed '/Inherits=/s|=.*$|=Faenza|' -i "$1$qtfix"
47 :
48 }
50 pre_remove()
51 {
52 [ -s "$1$qtfix" ] &&
53 sed '/Inherits=/s|=.*$|=SliTaz-Faenza|' -i "$1$qtfix"
54 :
55 }