# HG changeset patch # User Pascal Bellard # Date 1376572667 0 # Node ID 08883c298a1f605cd356872a179a3f584b06c286 # Parent 5b41f39a1049a1828d7aa56c1cbae765c8f20772 otf-gfs: cache sources files diff -r 5b41f39a1049 -r 08883c298a1f otf-gfs/receipt --- a/otf-gfs/receipt Thu Aug 15 13:01:55 2013 +0000 +++ b/otf-gfs/receipt Thu Aug 15 13:17:47 2013 +0000 @@ -7,17 +7,22 @@ MAINTAINER="al.bobylev@gmail.com" WEB_SITE="http://www.greekfontsociety.gr/pages/gr_typefaces1.html" TAGS="font otf" +EXTRA_SOURCE_FILES="GFS_DIDOT_OT.zip BODONI_OT.zip GFS_OLGA_OT.zip \ +NEOHELLENIC_OT.zip GFS_ARTEMISIA_OT.zip GFS_THEOKRITOS_OT.zip GFS_ELPIS_OT.zip \ +GFS_PYRSOS.zip GFS_DIDOTCLASS_OT.zip GFS_Porson_OT.zip GFS_SOLOMOS_OT.zip \ +GFS_DECKER.zip GFS_PHILOSTRATOS.zip GFS_GOSCHEN.zip GFS_BODONICLASS_OT.zip \ +GFS_BASKERVILLE_OT.zip GFS_GAZIS.zip GFS_COMPLUTUM_OT.zip" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $src && cd $src - for font in DIDOT_OT BODONI_OT OLGA_OT NEOHELLENIC_OT ARTEMISIA_OT \ - THEOKRITOS_OT ELPIS_OT PYRSOS DIDOTCLASS_OT Porson_OT SOLOMOS_OT \ - DECKER PHILOSTRATOS GOSCHEN BODONICLASS_OT BASKERVILLE_OT GAZIS \ - COMPLUTUM_OT; do - wget http://www.greekfontsociety.gr/GFS_${font}.zip - unzip -o GFS_${font}.zip + for font in $EXTRA_SOURCE_FILES; do + [ -s $SOURCES_REPOSITORY/${font} ] || + wget -O $SOURCES_REPOSITORY/${font} \ + http://www.greekfontsociety.gr/${font} + cp $SOURCES_REPOSITORY/${font} . + unzip -o ${font} done FONTDIR=$fs/usr/share/fonts/OTF/GFS mkdir -p $FONTDIR