system/CNS11643-font: Removed (Split into 2 new scripts).

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2024-08-07 16:00:44 +07:00
parent a1c8775ad6
commit 8d4c3ddd55
6 changed files with 0 additions and 282 deletions

View file

@ -1,85 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- TW-Kai and TW-Sung Configure File -->
<fontconfig>
<alias>
<family>TW-Sung</family>
<prefer>
<family>TW-Sung</family>
<family>TW-Sung-Plus</family>
<family>TW-Sung-Ext-B</family>
</prefer>
</alias>
<alias>
<family>TW-Kai</family>
<prefer>
<family>TW-Kai</family>
<family>TW-Kai-Plus</family>
<family>TW-Kai-Ext-B</family>
</prefer>
</alias>
<alias>
<family>細明體</family>
<prefer>
<family>TW-Sung</family>
<family>TW-Sung-Plus</family>
<family>TW-Sung-Ext-B</family>
</prefer>
</alias>
<alias>
<family>新細明體</family>
<prefer>
<family>TW-Sung</family>
<family>TW-Sung-Plus</family>
<family>TW-Sung-Ext-B</family>
</prefer>
</alias>
<alias>
<family>MingLiU</family>
<prefer>
<family>TW-Sung</family>
<family>TW-Sung-Plus</family>
<family>TW-Sung-Ext-B</family>
</prefer>
</alias>
<alias>
<family>PMingLiU</family>
<prefer>
<family>TW-Sung</family>
<family>TW-Sung-Plus</family>
<family>TW-Sung-Ext-B</family>
</prefer>
</alias>
<alias>
<family>標楷體</family>
<prefer>
<family>TW-Kai</family>
<family>TW-Kai-Plus</family>
<family>TW-Kai-Ext-B</family>
</prefer>
</alias>
<alias>
<family>BiauKai</family>
<prefer>
<family>TW-Kai</family>
<family>TW-Kai-Plus</family>
<family>TW-Kai-Ext-B</family>
</prefer>
</alias>
<alias>
<family>DFKai-SB</family>
<prefer>
<family>TW-Kai</family>
<family>TW-Kai-Plus</family>
<family>TW-Kai-Ext-B</family>
</prefer>
</alias>
<alias>
<family>KaiU</family>
<prefer>
<family>TW-Kai</family>
<family>TW-Kai-Plus</family>
<family>TW-Kai-Ext-B</family>
</prefer>
</alias>
</fontconfig>

View file

@ -1,85 +0,0 @@
#!/bin/bash
# Slackware build script for CNS11643-font
# Copyright 2022 CCHsu, Taiwan
# Copyright 2023 ltlnx, Taiwan
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=CNS11643-font
VERSION=${VERSION:-20231103}
SRCNAM=Open_Data
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
unzip $CWD/$SRCNAM.zip "Open_Data/Fonts/*.ttf"
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
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.
# 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
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE

View file

@ -1,10 +0,0 @@
PRGNAM="CNS11643-font"
VERSION="20231103"
HOMEPAGE="http://www.cns11643.gov.tw/"
DOWNLOAD="http://www.cns11643.gov.tw/AIDB/Open_Data.zip"
MD5SUM="f1a71e427ec64795f0aef99f3759ec29"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="ltlnx"
EMAIL="ltlnx@disroot.org"

View file

@ -1,73 +0,0 @@
This package contains two type of fonts: TW-Kai and TW-Sung, which are
provided by CNS11643 Chinese Standard Interchange Code Master Ideographs
from Taiwan.
A config file is included, 35-CNS11643-font.conf, which binds the
Windows counterparts "MingLiU" (細明體) and "PMingLiU"
(新細明體) to TW-Sung, and "DFKai-SB", "UKai" (標楷體) to TW-Kai.
If you want it copied into /etc/fonts/conf.avail, add the
environment variable "ADDCONF=yes" in front of the SlackBuild.
I recommend running the SlackBuild like this:
ADDCONF=yes ./CNS11643-font.SlackBuild
If you're using a SlackBuild manager, the way of adding variables may
differ; please consult the manual of your program for instructions.
If you don't want your default fonts replaced, you can add this to
/etc/fonts/conf.avail/50-user.conf between the <fontconfig> tags:
(please replace the font names according to the comments)
<!-- Custom font preference -->
<alias>
<family>serif</family>
<prefer>
<!-- preferred serif latin font -->
<family>Noto Serif</family>
<!-- preferred serif fallback font -->
<family>Noto Serif CJK TC</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<!-- preferred sans-serif latin font -->
<family>Noto Sans</family>
<!-- preferred sans-serif fallback font -->
<family>Noto Sans CJK TC</family>
</prefer>
</alias>
<match target="pattern">
<test qual="any" name="family" compare="eq">
<string>monospace</string>
</test>
<!-- replace "Liberation Mono" with preferred monospace font -->
<edit name="family" mode="assign" binding="strong">
<string>Liberation Mono</string>
</edit>
</match>
<alias>
<!-- replace "Liberation Mono" with preferred monospace font -->
<family>Liberation Mono</family>
<prefer>
<!-- preferred monospace font -->
<family>Liberation Mono</family>
<!-- preferred monospace fallback font
(does not necessarily need to be monospace -->
<family>Sarasa Fixed TC</family>
</prefer>
</alias>
<alias>
<family>system-ui</family>
<prefer>
<!-- preferred system-ui latin font (usually sans-serif) -->
<family>Noto Sans</family>
<!-- preferred system-ui fallback font -->
<family>Noto Sans CJK TC</family>
</prefer>
</alias>
The source file can be found at "http://data.gov.tw/node/5961", and the
license can be found at "http://www.cns11643.gov.tw/AIDB/copyright.do".
Note that the license is CC BY-ND ("http://www.cns11643.gov.tw/AIDB/
news_view.do?sn=bv").

View file

@ -1,10 +0,0 @@
# Update the X font indexes:
if [ -x /usr/bin/mkfontdir ]; then
( cd usr/share/fonts/TTF
mkfontscale .
mkfontdir .
)
fi
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache -f
fi

View file

@ -1,19 +0,0 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
CNS11643-font: CNS11643-font (Chinese Ming and Kai font)
CNS11643-font:
CNS11643-font: These fonts are provided by CNS11643 Chinese Standard Interchange
CNS11643-font: Code Master Ideographs from Taiwan.
CNS11643-font: This package contains two type of fonts: TW-Kai and TW-Sung. Both
CNS11643-font: fonts supports traditional and simplified Chinese.
CNS11643-font: The license can be found at http://www.cns11643.gov.tw/AIDB
CNS11643-font: /copyright.do (in Chinese).
CNS11643-font:
CNS11643-font: Homepage: http://www.cns11643.gov.tw/
CNS11643-font: