path: root/audio/synthv1/synthv1.SlackBuild
diff options
Diffstat (limited to 'audio/synthv1/synthv1.SlackBuild')
1 files changed, 42 insertions, 2 deletions
diff --git a/audio/synthv1/synthv1.SlackBuild b/audio/synthv1/synthv1.SlackBuild
index d5806adbfe..2c927fa9ba 100644
--- a/audio/synthv1/synthv1.SlackBuild
+++ b/audio/synthv1/synthv1.SlackBuild
@@ -6,6 +6,7 @@
# Licensed under the WTFPL. See for details.
+# 20180702 bkw: updated for v0.9.1, install French man page correctly.
# 20180615 bkw: updated for v0.9.0
# 20180101 bkw: updated for v0.8.6
# 20171220 bkw: updated for v0.8.5. Skipped 0.8.4 due to compile errors.
@@ -15,7 +16,7 @@
# 20170324 bkw: updated for v0.8.1
@@ -82,9 +83,48 @@ make install DESTDIR=$PKG
[ -d $PKG/usr/share/metainfo ] && \
mv $PKG/usr/share/metainfo $PKG/usr/share/appdata
+# 20180702 bkw: big long block of notes-to-self (and hopefully others):
+# Upstream ships a French man page, but installs it in the wrong place.
+# The Slackware situation with character sets and man pages confusing to
+# begin with, and is in flux because post-14.2 -current has switched to
+# using man-db. A lot of Slackware packages (not just SBo ones) get this
+# stuff wrong.
+# For 14.2, using old-school man, the man page has to be in ISO-8859-1,
+# in the /usr/man/fr/ directory. This works for LANG=fr_FR (page is
+# used as-is) and also LANG=fr_FR.UTF-8 (man command converts it to
+# UTF-8 for displaying). Old-school man doesn't even look for a
+# /usr/man/fr.UTF-8/ dir at all.
+# 15.0, using man-db, works the opposite way: the man page should be
+# in UTF-8, stored in /usr/man/fr.UTF-8/, and will be used as-is if
+# LANG=fr_FR.UTF-8. If LANG=fr_FR, man-db will convert it to ISO-8859-1
+# for display.
+# The situation is even worse if you speak e.g. Japanese: I haven't found
+# a way to make 14.2's man display Japanese at all (which is one of the
+# reasons 15.0 will be using man-db actually).
+# For this build, upstream's French man page is UTF-8, so for 14.2 we have
+# to convert it to ISO-8859-1 here. When updating this script for 15.0,
+# we'll be able to get rid of the conversion (and most of this comment
+# block!) and ship only the UTF-8 man page. For now, include both,
+# to be -current-friendly.
+mkdir -p $PKG/usr/man/fr/man1 $PKG/usr/man/fr.UTF-8/man1
+mv $PKG/usr/man/man1/$ $PKG/usr/man/fr.UTF-8/man1/$PRGNAM.1.gz
+zcat $PKG/usr/man/fr.UTF-8/man1/$PRGNAM.1.gz | \
+ iconv -f UTF-8 -t ISO-8859-1 | \
+ gzip -9c \
+ > $PKG/usr/man/fr/man1/$PRGNAM.1.gz
# binaries already stripped, man page already gzipped. make symlink
# to man page, to match the actual name of the binary.
-ln -s $PRGNAM.1.gz $PKG/usr/man/man1/${PRGNAM}_jack.1.gz
+for i in man1 fr/man1 fr.UTF-8/man1; do
+ ln -s $PRGNAM.1.gz $PKG/usr/man/$i/${PRGNAM}_jack.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION