summaryrefslogtreecommitdiffstats
path: root/misc/po4a
diff options
context:
space:
mode:
Diffstat (limited to 'misc/po4a')
-rw-r--r--misc/po4a/po4a.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/misc/po4a/po4a.SlackBuild b/misc/po4a/po4a.SlackBuild
index 2ce71e2e58..b67df8ae81 100644
--- a/misc/po4a/po4a.SlackBuild
+++ b/misc/po4a/po4a.SlackBuild
@@ -7,6 +7,9 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20230701 bkw: BUILD=2:
+# - install translations to /usr/share/locale, *not* /usr/locale!
+
# 20230103 bkw: update for v0.69.
# 20220110 bkw:
@@ -26,7 +29,7 @@ export LC_ALL=en_US.UTF-8
PRGNAM=po4a
VERSION=${VERSION:-0.69}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -56,6 +59,12 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+# 20230701 bkw: upstream makes a bad assumption about where the locale dir
+# lives: assumes it's in the same dir as man/. this would be right if our
+# man pages were in /usr/share/man, but sice we use /usr/man, we end up
+# with translations installed to /usr/locale. ugh.
+sed -i '/\$localedir *=~/s,/locale,/share/locale,' Po4aBuilder.pm
+
perl Build.PL \
prefix=/usr \
installdirs=vendor \