diff options
-rw-r--r-- | audio/flac-opt/flac-opt.SlackBuild | 7 | ||||
-rw-r--r-- | audio/flac-opt/flac-opt.sh | 15 |
2 files changed, 7 insertions, 15 deletions
diff --git a/audio/flac-opt/flac-opt.SlackBuild b/audio/flac-opt/flac-opt.SlackBuild index 94a3bd70a1..4f5ec56233 100644 --- a/audio/flac-opt/flac-opt.SlackBuild +++ b/audio/flac-opt/flac-opt.SlackBuild @@ -6,6 +6,11 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20250512 bkw: BUILD=2 +# - fix man breakage that occurred if MANPATH wasn't already set +# when the profile script ran. Thanks to fourtysixandtwo for +# catching this. + # Notes: # - Not based on PV's flac.SlackBuild. Started with SBo template. # - Static libraries, not shared, because they live in a weird prefix. @@ -28,7 +33,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=flac-opt SRCNAM=flac VERSION=${VERSION:-1.5.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/audio/flac-opt/flac-opt.sh b/audio/flac-opt/flac-opt.sh index 5ede5e21af..eb9a6dad59 100644 --- a/audio/flac-opt/flac-opt.sh +++ b/audio/flac-opt/flac-opt.sh @@ -1,19 +1,6 @@ # profile.d script for SBo flac-opt build, WTFPL, B. Watson. -# don't know if MANPATH might be set already, so cover both cases. - -Mtmp=@PREFIX@/man - -if [ -z "$MANPATH" ]; then - MANPATH="$Mtmp" -else - MANPATH="$Mtmp:$MANPATH" -fi - -unset Mtmp - -# PATH will already be set (in /etc/profile) so don't worry about it. - +MANPATH="@PREFIX@/man:$MANPATH" PATH=@PREFIX@/bin:$PATH export PATH |