diff options
Diffstat (limited to 'system/CNS11643-font/CNS11643-font.SlackBuild')
-rw-r--r-- | system/CNS11643-font/CNS11643-font.SlackBuild | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/system/CNS11643-font/CNS11643-font.SlackBuild b/system/CNS11643-font/CNS11643-font.SlackBuild index 85b8c20bfe..ede661c2e3 100644 --- a/system/CNS11643-font/CNS11643-font.SlackBuild +++ b/system/CNS11643-font/CNS11643-font.SlackBuild @@ -2,7 +2,8 @@ # Slackware build script for CNS11643-font -# Copyright 2018 CCHsu, Taiwan +# Copyright 2022 CCHsu, Taiwan +# Copyright 2023 ltlnx, Taiwan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=CNS11643-font -VERSION=${VERSION:-20180105} +VERSION=${VERSION:-20231103} SRCNAM=Open_Data BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -33,9 +34,6 @@ PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -65,11 +63,17 @@ mkdir -p $PKG/usr/share/fonts/TTF cp -a Open_Data/Fonts/*.ttf $PKG/usr/share/fonts/TTF # Create a font config file and symlink it into /etc/fonts/conf.d. -mkdir -p $PKG/etc/fonts/conf.{d,avail} -cat $CWD/35-CNS11643-font.conf > $PKG/etc/fonts/conf.avail/35-CNS11643-font.conf -( cd $PKG/etc/fonts/conf.d && \ - ln -sf ../conf.avail/35-CNS11643-font.conf -) +# Do this only if the user explicitly asks for it. +ADDCONF=${ADDCONF:-no} +if [ "$ADDCONF" = "yes" ]; then + mkdir -p $PKG/etc/fonts/conf.{d,avail} + cat $CWD/35-CNS11643-font.conf > $PKG/etc/fonts/conf.avail/35-CNS11643-font.conf + ( cd $PKG/etc/fonts/conf.d && \ + ln -sf ../conf.avail/35-CNS11643-font.conf + ) +fi + + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |