diff options
Diffstat (limited to 'system/gnu-unifont')
-rw-r--r-- | system/gnu-unifont/README | 5 | ||||
-rw-r--r-- | system/gnu-unifont/gnu-unifont.SlackBuild | 25 | ||||
-rw-r--r-- | system/gnu-unifont/gnu-unifont.info | 10 |
3 files changed, 29 insertions, 11 deletions
diff --git a/system/gnu-unifont/README b/system/gnu-unifont/README index 1a66fa550c54d..27bfa30b0ec9e 100644 --- a/system/gnu-unifont/README +++ b/system/gnu-unifont/README @@ -4,3 +4,8 @@ Unicode Basic Multilinguial Plane(BMP). The BMP is the first Unicode for most of the world's modern scripts. This package installs precompiled fonts only. + +By default, the package will include TTF (TrueType), PCF (X Window bitmap +fonts) and PSF (console) fonts. This can be changed using FONTFORMATS +environment variable. Its default value is "ttf,pcf,psf". For example, +setting FONTFORMATS=pcf,psf will include only PCF and PSF fonts. diff --git a/system/gnu-unifont/gnu-unifont.SlackBuild b/system/gnu-unifont/gnu-unifont.SlackBuild index 527309110a6ba..0cf974382f8e4 100644 --- a/system/gnu-unifont/gnu-unifont.SlackBuild +++ b/system/gnu-unifont/gnu-unifont.SlackBuild @@ -4,6 +4,7 @@ # Copyright 2010 crocket (crockabiscuit@gmail.com) # Copyright 2013-2015 LukenShiro, Italy +# Copyright 2019 Tomasz Bywalec # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +25,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=gnu-unifont -VERSION=${VERSION:-8.0.01} +VERSION=${VERSION:-12.0.01} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -37,6 +38,7 @@ OUTPUT=${OUTPUT:-/tmp} SRCNAM=unifont DOCFILES="ChangeLog COPYING INSTALL NEWS README" +FONTFORMATS=${FONTFORMATS:-ttf,pcf,psf} set -e @@ -54,11 +56,22 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; cd font/precompiled -mkdir -p $PKG/usr/share/fonts/{misc,TTF} -cp -a *.pcf.gz $PKG/usr/share/fonts/misc/ -cp -a *.ttf $PKG/usr/share/fonts/TTF -mkdir -p $PKG/usr/share/kbd/consolefonts -cp -a *.psf.gz $PKG/usr/share/kbd/consolefonts/ + +if [[ $FONTFORMATS == *pcf* ]]; then + mkdir -p $PKG/usr/share/fonts/misc + cp -a *.pcf.gz $PKG/usr/share/fonts/misc +fi + +if [[ $FONTFORMATS == *ttf* ]]; then + mkdir -p $PKG/usr/share/fonts/TTF + cp -a *.ttf $PKG/usr/share/fonts/TTF +fi + +if [[ $FONTFORMATS == *psf* ]]; then + mkdir -p $PKG/usr/share/kbd/consolefonts + cp -a *.psf.gz $PKG/usr/share/kbd/consolefonts +fi + cd - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/system/gnu-unifont/gnu-unifont.info b/system/gnu-unifont/gnu-unifont.info index 95dcb493ddb07..194f5e6760de3 100644 --- a/system/gnu-unifont/gnu-unifont.info +++ b/system/gnu-unifont/gnu-unifont.info @@ -1,10 +1,10 @@ PRGNAM="gnu-unifont" -VERSION="8.0.01" +VERSION="12.0.01" HOMEPAGE="http://unifoundry.com/unifont.html" -DOWNLOAD="ftp://ftp.gnu.org/gnu/unifont/unifont-8.0.01/unifont-8.0.01.tar.gz" -MD5SUM="b813e863f35e0f5f6235e73041c7b1a6" +DOWNLOAD="https://ftpmirror.gnu.org/unifont/unifont-12.0.01/unifont-12.0.01.tar.gz" +MD5SUM="173132029ee8cdd34e9f0c30e290df19" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="LukenShiro" -EMAIL="lukenshiro@ngi.it" +MAINTAINER="Tomasz Bywalec" +EMAIL="t.bywalec@gmail.com" |