diff options
author | B. Watson <urchlay@slackware.uk> | 2023-07-01 03:14:19 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-08 16:42:03 +0700 |
commit | f499e80d0df8f529ae7509c08111e06645b4deeb (patch) | |
tree | 613d12a28f449d77c945ab9288bb8aef372697b9 /misc/po4a | |
parent | 63bb0f2188d75fe3ee3ad66a64b75898d9d2be1e (diff) |
misc/po4a: Install locale stuff to /usr/share/locale.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/po4a')
-rw-r--r-- | misc/po4a/po4a.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/misc/po4a/po4a.SlackBuild b/misc/po4a/po4a.SlackBuild index 2ce71e2e58fbd..b67df8ae81bbe 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 \ |