wok-current view faenza-icon-theme/receipt @ rev 24983

Up xcursor-comix (0.9.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 08 16:45:21 2022 +0000 (2022-05-08)
parents da18496ecada
children
line source
1 # SliTaz package receipt.
3 PACKAGE="faenza-icon-theme"
4 VERSION="1.3.1"
5 CATEGORY="customization"
6 SHORT_DESC="Faenza icon theme."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://deviantart.com/tiheum/art/Faenza-Icons-173323228"
11 TARBALL="${PACKAGE}_$VERSION.tar.gz"
12 WGET_URL="http://dl.dropbox.com/u/9966975/$TARBALL"
13 WGET_URL="http://ppa.launchpad.net/tiheum/equinox/ubuntu/pool/main/f/$PACKAGE/$TARBALL"
15 DEPENDS=""
17 HOST_ARCH="any"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/${PACKAGE}_[0-9]/!d;/tar/!d;s|.*${PACKAGE}_||;s|.tar.*||" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mkdir -p $install/usr/share/icons
30 cd $install/usr/share/icons
31 # tar xf $src/Faenza.tar.gz
32 # tar xf $src/Faenza-Dark.tar.gz
33 # tar xf $src/Faenza-Darkest.tar.gz
34 # tar xf $src/Faenza-Darker.tar.gz
35 cp -a $src/Faenza .
36 cp -a $src/Faenza-Dark .
37 cp -a $src/Faenza-Darker .
38 cp -a $src/Faenza-Darkest .
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cp -a $install/* $fs
46 # remove big sizes and scalable
47 rm -rf $(find $fs -type d -regex '.*/\(64\|96\|scalable\)')
49 # remove emblems and extras
50 rm -rf $(find $fs -type d -regex '.*/\(emblems\|extras\)')
51 # sed -i '/Directories=/ s/\(.+\)\(,actions\/64.*\)/\1/' Faenza/index.theme
53 for name in Faenza Faenza-Dark Faenza-Darkest Faenza-Darker
54 do
55 cp -f $stuff/${name}-index.theme \
56 $fs/usr/share/icons/${name}/index.theme
57 done
58 }
60 qtfix='/usr/share/icons/hicolor/index.theme'
62 post_install()
63 {
64 [ -s "$1$qtfix" ] &&
65 sed '/Inherits=/s|=.*$|=Faenza|' -i "$1$qtfix"
66 :
67 }
69 pre_remove()
70 {
71 [ -s "$1$qtfix" ] &&
72 sed '/Inherits=/s|=.*$|=SliTaz-Faenza|' -i "$1$qtfix"
73 :
74 }