wok-6.x rev 15148
otf-gfs: cache sources files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 15 13:17:47 2013 +0000 (2013-08-15) |
parents | 5b41f39a1049 |
children | 7f6b04cd013a |
files | otf-gfs/receipt |
line diff
1.1 --- a/otf-gfs/receipt Thu Aug 15 13:01:55 2013 +0000 1.2 +++ b/otf-gfs/receipt Thu Aug 15 13:17:47 2013 +0000 1.3 @@ -7,17 +7,22 @@ 1.4 MAINTAINER="al.bobylev@gmail.com" 1.5 WEB_SITE="http://www.greekfontsociety.gr/pages/gr_typefaces1.html" 1.6 TAGS="font otf" 1.7 +EXTRA_SOURCE_FILES="GFS_DIDOT_OT.zip BODONI_OT.zip GFS_OLGA_OT.zip \ 1.8 +NEOHELLENIC_OT.zip GFS_ARTEMISIA_OT.zip GFS_THEOKRITOS_OT.zip GFS_ELPIS_OT.zip \ 1.9 +GFS_PYRSOS.zip GFS_DIDOTCLASS_OT.zip GFS_Porson_OT.zip GFS_SOLOMOS_OT.zip \ 1.10 +GFS_DECKER.zip GFS_PHILOSTRATOS.zip GFS_GOSCHEN.zip GFS_BODONICLASS_OT.zip \ 1.11 +GFS_BASKERVILLE_OT.zip GFS_GAZIS.zip GFS_COMPLUTUM_OT.zip" 1.12 1.13 # Rules to gen a SliTaz package suitable for Tazpkg. 1.14 genpkg_rules() 1.15 { 1.16 mkdir -p $src && cd $src 1.17 - for font in DIDOT_OT BODONI_OT OLGA_OT NEOHELLENIC_OT ARTEMISIA_OT \ 1.18 - THEOKRITOS_OT ELPIS_OT PYRSOS DIDOTCLASS_OT Porson_OT SOLOMOS_OT \ 1.19 - DECKER PHILOSTRATOS GOSCHEN BODONICLASS_OT BASKERVILLE_OT GAZIS \ 1.20 - COMPLUTUM_OT; do 1.21 - wget http://www.greekfontsociety.gr/GFS_${font}.zip 1.22 - unzip -o GFS_${font}.zip 1.23 + for font in $EXTRA_SOURCE_FILES; do 1.24 + [ -s $SOURCES_REPOSITORY/${font} ] || 1.25 + wget -O $SOURCES_REPOSITORY/${font} \ 1.26 + http://www.greekfontsociety.gr/${font} 1.27 + cp $SOURCES_REPOSITORY/${font} . 1.28 + unzip -o ${font} 1.29 done 1.30 FONTDIR=$fs/usr/share/fonts/OTF/GFS 1.31 mkdir -p $FONTDIR