summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2020-12-12 11:26:04 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-12-19 09:40:28 +0700
commit5335d32b161cb5e85809aa9a1e83eed873e86726 (patch)
tree9f6d1f08bf962e9948671cdb403f91e0301ee29e
parentd7696644bb4053a90b56eca4f183c25211b730c4 (diff)
downloadslackbuilds-5335d32b161cb5e85809aa9a1e83eed873e86726.tar.gz
system/gnu-unifont: Keep the fonts names unversioned.
...with permission from the maintainer :-) Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/gnu-unifont/gnu-unifont.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/gnu-unifont/gnu-unifont.SlackBuild b/system/gnu-unifont/gnu-unifont.SlackBuild
index ad05b4f6d3..0dbcfff423 100644
--- a/system/gnu-unifont/gnu-unifont.SlackBuild
+++ b/system/gnu-unifont/gnu-unifont.SlackBuild
@@ -105,6 +105,9 @@ if [ "$FONTSCOPIED" -eq 0 ]; then
exit 1
fi
+# Keep the fonts names unversioned
+find -L $PKG/usr/share -type f -name "*-$VERSION*" -exec rename -- "-$VERSION" '' {} \;
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild