wok rev 18156
Add: tazpanel-ttf-css. Fix duplicate: slitaz-base-files (277)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sun Jun 21 22:56:45 2015 +0300 (2015-06-21) |
parents | 87cb419b692f |
children | d51e07c67406 |
files | slitaz-base-files/receipt tazpanel-ttf-css/receipt |
line diff
1.1 --- a/slitaz-base-files/receipt Sun Jun 21 11:12:00 2015 +0200 1.2 +++ b/slitaz-base-files/receipt Sun Jun 21 22:56:45 2015 +0300 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="slitaz-base-files" 1.7 -VERSION="278" 1.8 +VERSION="277" 1.9 CATEGORY="base-system" 1.10 SHORT_DESC="Linux tree and the necessary files for the base system." 1.11 MAINTAINER="pankso@slitaz.org"
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/tazpanel-ttf-css/receipt Sun Jun 21 22:56:45 2015 +0300 2.3 @@ -0,0 +1,47 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="tazpanel-ttf-css" 2.7 +VERSION="501" 2.8 +CATEGORY="misc" 2.9 +SHORT_DESC="Enables tazpanel.ttf icons in opera browser" 2.10 +MAINTAINER="psychomaniak@xakep.ru" 2.11 +LICENSE="BSD" 2.12 +SOURCE="tazpanel" 2.13 +TARBALL="$SOURCE-$VERSION.tar.gz" 2.14 +WEB_SITE="http://www.slitaz.org/" 2.15 +WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.gz" 2.16 + 2.17 +DEPENDS="tazpanel" 2.18 +BUILD_DEPENDS="fontforge" 2.19 + 2.20 +# Rules to configure and make the package. 2.21 +compile_rules() 2.22 +{ 2.23 + cd $src/styles/default 2.24 + cat > ttf2svg.pe <<EOF 2.25 +#!/usr/bin/fontforge 2.26 +Open(\$1) 2.27 +Generate(\$1:r + ".svg") 2.28 +EOF 2.29 + chmod +x ttf2svg.pe 2.30 + fontforge --script ttf2svg.pe tazpanel.ttf 2.31 + 2.32 + for i in $(fgrep 'glyph-name="uniF1' tazpanel.svg | sed 's/ //g'); do 2.33 + name=$(expr ${i/;/}| cut -d'"' -f4 | sed 's|||; s|z|z|') 2.34 + addr=$(expr ${i/uni/\\} | cut -d'"' -f2) 2.35 + cat >> presto.css <<EOT 2.36 +[data-icon="${name}"]::before, [data-img="${name}"]::before { 2.37 + content: '${addr}'; 2.38 +} 2.39 +EOT 2.40 + done 2.41 +} 2.42 + 2.43 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.44 +genpkg_rules() 2.45 +{ 2.46 + S="$fs/var/www/tazpanel/styles/default" 2.47 + mkdir -p $S 2.48 + cp $src/styles/default/presto.css $S 2.49 +} 2.50 +