wok-next annotate tazpanel-ttf-css/receipt @ rev 18459
Add c-ares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 28 23:07:00 2015 +0200 (2015-09-28) |
parents | c6036b12bcaf |
children | e4eed57a72a5 |
rev | line source |
---|---|
psychomaniak@18156 | 1 # SliTaz package receipt. |
psychomaniak@18156 | 2 |
psychomaniak@18156 | 3 PACKAGE="tazpanel-ttf-css" |
al@18270 | 4 VERSION="522" |
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 |