diff options
author | Tomasz Bywalec <t.bywalec@gmail.com> | 2019-04-13 18:14:26 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-04-14 07:15:31 +0700 |
commit | 13efd257dfc203b97ae8f31f16fc30796d48abf8 (patch) | |
tree | ebccbdb5174073b6ae0ba514d55468613417aebd /system/gnu-unifont | |
parent | 19f1df45a31749aacbab19ab2b8e67bf5f9d15a1 (diff) | |
download | slackbuilds-13efd257dfc203b97ae8f31f16fc30796d48abf8.tar.gz |
system/gnu-unifont: Updated for version 12.0.01.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 1a66fa550c..27bfa30b0e 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 527309110a..0cf974382f 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 95dcb493dd..194f5e6760 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" |