wok-current annotate tazpanel-ttf-css/receipt @ rev 18575
fontconfig: add lcdfilter-default in /etc/fonts/conf.d
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Nov 11 00:58:31 2015 +0100 (2015-11-11) |
parents | 5df42bcd4a8b |
children | 73506165b4d6 |
rev | line source |
---|---|
psychomaniak@18156 | 1 # SliTaz package receipt. |
psychomaniak@18156 | 2 |
psychomaniak@18156 | 3 PACKAGE="tazpanel-ttf-css" |
al@18566 | 4 VERSION="545" |
psychomaniak@18156 | 5 CATEGORY="misc" |
psychomaniak@18156 | 6 SHORT_DESC="Enables tazpanel.ttf icons in opera browser" |
psychomaniak@18156 | 7 MAINTAINER="psychomaniak@xakep.ru" |
psychomaniak@18156 | 8 LICENSE="BSD" |
psychomaniak@18156 | 9 SOURCE="tazpanel" |
psychomaniak@18156 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
psychomaniak@18156 | 11 WEB_SITE="http://www.slitaz.org/" |
psychomaniak@18156 | 12 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.gz" |
psychomaniak@18156 | 13 |
psychomaniak@18156 | 14 DEPENDS="tazpanel" |
psychomaniak@18156 | 15 BUILD_DEPENDS="fontforge" |
psychomaniak@18156 | 16 |
psychomaniak@18156 | 17 # Rules to configure and make the package. |
psychomaniak@18156 | 18 compile_rules() |
psychomaniak@18156 | 19 { |
psychomaniak@18156 | 20 cd $src/styles/default |
psychomaniak@18156 | 21 cat > ttf2svg.pe <<EOF |
psychomaniak@18156 | 22 #!/usr/bin/fontforge |
psychomaniak@18156 | 23 Open(\$1) |
psychomaniak@18156 | 24 Generate(\$1:r + ".svg") |
psychomaniak@18156 | 25 EOF |
psychomaniak@18156 | 26 chmod +x ttf2svg.pe |
psychomaniak@18156 | 27 fontforge --script ttf2svg.pe tazpanel.ttf |
psychomaniak@18156 | 28 |
psychomaniak@18156 | 29 for i in $(fgrep 'glyph-name="uniF1' tazpanel.svg | sed 's/ //g'); do |
psychomaniak@18156 | 30 name=$(expr ${i/;/}| cut -d'"' -f4 | sed 's|||; s|z|z|') |
psychomaniak@18156 | 31 addr=$(expr ${i/uni/\\} | cut -d'"' -f2) |
psychomaniak@18156 | 32 cat >> presto.css <<EOT |
psychomaniak@18156 | 33 [data-icon="${name}"]::before, [data-img="${name}"]::before { |
psychomaniak@18156 | 34 content: '${addr}'; |
psychomaniak@18156 | 35 } |
psychomaniak@18156 | 36 EOT |
psychomaniak@18156 | 37 done |
psychomaniak@18156 | 38 } |
psychomaniak@18156 | 39 |
psychomaniak@18156 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@18156 | 41 genpkg_rules() |
psychomaniak@18156 | 42 { |
psychomaniak@18156 | 43 S="$fs/var/www/tazpanel/styles/default" |
psychomaniak@18156 | 44 mkdir -p $S |
psychomaniak@18156 | 45 cp $src/styles/default/presto.css $S |
psychomaniak@18156 | 46 } |
psychomaniak@18156 | 47 |