system/fnt: Updated for version 1.5.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Vijay Marcel 2024-02-07 06:30:05 +07:00 committed by Willy Sudiarto Raharjo
parent 11f395bcdd
commit fb29598bc0
No known key found for this signature in database
GPG key ID: 3F617144D7238786
4 changed files with 22 additions and 44 deletions

View file

@ -22,4 +22,6 @@ To uninstall a font
$ fnt remove agave
This work is licensed under the MIT License.
To get a list of fonts that are available and save it to a file do
fnt search > fontlist

View file

@ -2,7 +2,7 @@
# Slackware build script for fnt
# Copyright 2022 Vijay Marcel
# Copyright 2022-2024 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,22 +25,12 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=fnt
VERSION=${VERSION:-1.4.1}
VERSION=${VERSION:-1.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
# 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
@ -50,20 +40,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
trap 'echo "$0 FAILED at line $LINENO!" | tee -a $OUTPUT/error-${PRGNAM}.log' ERR
@ -80,22 +56,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
sed -i '2 i MANDIR=/usr/man' makefile
sed -i.bak '3d' makefile
rm -rvf makefile.bak
sed -i.bak '3d' makefile
rm -rvf makefile.bak
sed -i '3 i ZCOMPDIR=/usr/share/zsh/site-functions' makefile
patch --verbose --unified < $CWD/makefile.patch
make
make install DESTDIR=$PKG
# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@ -105,6 +69,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -1,8 +1,8 @@
PRGNAM="fnt"
VERSION="1.4.1"
VERSION="1.5"
HOMEPAGE="https://github.com/alexmyczko/fnt"
DOWNLOAD="https://github.com/alexmyczko/fnt/archive/1.4.1/fnt-1.4.1.tar.gz"
MD5SUM="b9ca2f91096a715e13287dd8dc9d4744"
DOWNLOAD="https://github.com/alexmyczko/fnt/archive/1.5/fnt-1.5.tar.gz"
MD5SUM="e2d25c7845bc2617f618a0701f7ceabe"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="chafa lcdf-typetools"

11
system/fnt/makefile.patch Normal file
View file

@ -0,0 +1,11 @@
--- makefile 2023-08-22 18:06:03.000000000 +0530
+++ makefile1 2024-02-05 18:00:30.130997385 +0530
@@ -1,6 +1,6 @@
BINDIR=/usr/bin
-MANDIR=/usr/share/man
-ZCOMPDIR=/usr/local/share/zsh/site-functions
+MANDIR=/usr/man
+ZCOMPDIR=/usr/share/zsh/site-functions
VERSION=1.3
all: