summaryrefslogtreecommitdiffstats
path: root/misc/po4a/po4a.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/po4a/po4a.SlackBuild')
-rw-r--r--misc/po4a/po4a.SlackBuild19
1 files changed, 15 insertions, 4 deletions
diff --git a/misc/po4a/po4a.SlackBuild b/misc/po4a/po4a.SlackBuild
index 4455894891..b67df8ae81 100644
--- a/misc/po4a/po4a.SlackBuild
+++ b/misc/po4a/po4a.SlackBuild
@@ -7,6 +7,11 @@
# 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:
# - new maintainer.
# - relicense as WTFPL with permission from Didier.
@@ -17,14 +22,14 @@
# - ARCH=noarch.
# - run the tests if TESTS=yes, as user nobody so they actually work.
+cd $(dirname $0) ; CWD=$(pwd)
+
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
-cd $(dirname $0) ; CWD=$(pwd)
-
PRGNAM=po4a
-VERSION=${VERSION:-0.65}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-0.69}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -54,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 \