diff options
-rw-r--r-- | system/Gentium/Gentium.SlackBuild | 77 | ||||
-rw-r--r-- | system/Gentium/Gentium.info | 12 | ||||
-rw-r--r-- | system/Gentium/README | 6 | ||||
-rw-r--r-- | system/Gentium/doinst.sh | 11 | ||||
-rw-r--r-- | system/Gentium/slack-desc | 19 |
5 files changed, 125 insertions, 0 deletions
diff --git a/system/Gentium/Gentium.SlackBuild b/system/Gentium/Gentium.SlackBuild new file mode 100644 index 0000000000..bfcdf6b47d --- /dev/null +++ b/system/Gentium/Gentium.SlackBuild @@ -0,0 +1,77 @@ +#!/bin/bash + +# Slackware build script for Gentium + +# Copyright 2025 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=Gentium +VERSION=${VERSION:-7.000} +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/$PRGNAM-$VERSION.zip +unzip $CWD/$PRGNAM\Book-$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 $PRGNAM*/*.ttf $PKG/usr/share/fonts/TTF/ + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $PRGNAM-$VERSION/OFL.txt > $PKG/usr/doc/$PRGNAM-$VERSION/OFL.txt +cat $PRGNAM-$VERSION/OFL-FAQ.txt > $PKG/usr/doc/$PRGNAM-$VERSION/OFL-FAQ.txt +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/Gentium/Gentium.info b/system/Gentium/Gentium.info new file mode 100644 index 0000000000..efd922a369 --- /dev/null +++ b/system/Gentium/Gentium.info @@ -0,0 +1,12 @@ +PRGNAM="Gentium" +VERSION="7.000" +HOMEPAGE="https://software.sil.org/gentium/" +DOWNLOAD="https://software.sil.org/downloads/r/gentium/Gentium-7.000.zip \ + https://software.sil.org/downloads/r/gentium/GentiumBook-7.000.zip" +MD5SUM="d19d4d266cca4f58a5c71d7b03bb21de \ + e11f8a387990a486187d2a9125505faa" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="K. Eugene Carlson" +EMAIL="kvngncrlsn@gmail.com" diff --git a/system/Gentium/README b/system/Gentium/README new file mode 100644 index 0000000000..d3d59c1e2b --- /dev/null +++ b/system/Gentium/README @@ -0,0 +1,6 @@ +Gentium (a typeface for the nations) + +Gentium is a typeface family designed to enable the diverse +ethnic groups around the world who use the Latin, Cyrillic and Greek +scripts to produce readable, high-quality publications. It supports a +wide range of Latin- and Cyrillic-based alphabets. diff --git a/system/Gentium/doinst.sh b/system/Gentium/doinst.sh new file mode 100644 index 0000000000..4e76851286 --- /dev/null +++ b/system/Gentium/doinst.sh @@ -0,0 +1,11 @@ +# Update the X font indices: +if [ -x /usr/bin/mkfontdir -o -x /usr/X11R6/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/Gentium/slack-desc b/system/Gentium/slack-desc new file mode 100644 index 0000000000..c0bbff7c54 --- /dev/null +++ b/system/Gentium/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------------------------------------------------------| +Gentium: Gentium (a typeface for the nations) +Gentium: +Gentium: Gentium is a typeface family designed to enable the diverse +Gentium: ethnic groups around the world who use the Latin, Cyrillic and Greek +Gentium: scripts to produce readable, high-quality publications. It supports a +Gentium: wide range of Latin- and Cyrillic-based alphabets. +Gentium: +Gentium: https://software.sil.org/gentium/ +Gentium: +Gentium: +Gentium: |