diff options
author | K. Eugene Carlson <kvngncrlsn@gmail.com> | 2022-05-27 22:44:59 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-28 09:11:39 +0700 |
commit | 78ebabb148fd112043ba69ceb62cc2b15a33d13c (patch) | |
tree | 1f93d4f54f995fadc32b3a01800efa402febcc1c | |
parent | 80050d4b373481934f746e3900b16b5e019e2b38 (diff) |
system/ttf-hanazono: Updated for version 20170904.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | system/ttf-hanazono/README | 4 | ||||
-rw-r--r-- | system/ttf-hanazono/doinst.sh | 11 | ||||
-rw-r--r-- | system/ttf-hanazono/slack-desc | 19 | ||||
-rw-r--r-- | system/ttf-hanazono/ttf-hanazono.SlackBuild | 78 | ||||
-rw-r--r-- | system/ttf-hanazono/ttf-hanazono.info | 10 |
5 files changed, 122 insertions, 0 deletions
diff --git a/system/ttf-hanazono/README b/system/ttf-hanazono/README new file mode 100644 index 000000000000..20e9259b8d71 --- /dev/null +++ b/system/ttf-hanazono/README @@ -0,0 +1,4 @@ +ttf-hanazono (extended kanji font) + +ttf-hanazono includes the TTF fonts HanaMinA and HanaMinB. It provides +coverage for the CJK extension sets B through F. diff --git a/system/ttf-hanazono/doinst.sh b/system/ttf-hanazono/doinst.sh new file mode 100644 index 000000000000..e0811da7df55 --- /dev/null +++ b/system/ttf-hanazono/doinst.sh @@ -0,0 +1,11 @@ +# Update the X font indices: +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 diff --git a/system/ttf-hanazono/slack-desc b/system/ttf-hanazono/slack-desc new file mode 100644 index 000000000000..d00c11e584a2 --- /dev/null +++ b/system/ttf-hanazono/slack-desc @@ -0,0 +1,19 @@ +# 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------------------------------------------------------| +ttf-hanazono: ttf-hanazono (extended kanji font) +ttf-hanazono: +ttf-hanazono: ttf-hanazono provides coverage for the CJK extension sets B through F. +ttf-hanazono: +ttf-hanazono: +ttf-hanazono: +ttf-hanazono: +ttf-hanazono: +ttf-hanazono: +ttf-hanazono: +ttf-hanazono: Homepage: http://fonts.jp/hanazono diff --git a/system/ttf-hanazono/ttf-hanazono.SlackBuild b/system/ttf-hanazono/ttf-hanazono.SlackBuild new file mode 100644 index 000000000000..163647909853 --- /dev/null +++ b/system/ttf-hanazono/ttf-hanazono.SlackBuild @@ -0,0 +1,78 @@ +#!/bin/bash +# +# Slackware build script for ttf-hanazono +# +# Copyright 2022 K. Eugene Carlson Tsukuba, Japan +# 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=ttf-hanazono +SRCNAM=hanazono +VERSION=${VERSION:-20170904} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +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 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +mkdir -p $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +unzip $CWD/$SRCNAM-$VERSION.zip +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 +install -m 644 HanaMin*.ttf $PKG/usr/share/fonts/TTF/ + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +for DOC in README LICENSE THANKS; do + cp $DOC.txt $PKG/usr/doc/$PRGNAM-$VERSION/$DOC +done +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 diff --git a/system/ttf-hanazono/ttf-hanazono.info b/system/ttf-hanazono/ttf-hanazono.info new file mode 100644 index 000000000000..6b0af19b72cb --- /dev/null +++ b/system/ttf-hanazono/ttf-hanazono.info @@ -0,0 +1,10 @@ +PRGNAM="ttf-hanazono" +VERSION="20170904" +HOMEPAGE="http://font.jp/hanazono" +DOWNLOAD="https://osdn.net/projects/hanazono-font/downloads/68253/hanazono-20170904.zip" +MD5SUM="3614983d1a899dc212ed377c4b5c99eb" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="K. Eugene Carlson" +EMAIL="kvngncrlsn@gmail.com" |