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>
This commit is contained in:
B. Watson 2023-07-01 03:14:19 -04:00 committed by Willy Sudiarto Raharjo
parent 63bb0f2188
commit f499e80d0d
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 10 additions and 1 deletions

View File

@ -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 \