diff options
Diffstat (limited to 'system/bat/bat.SlackBuild')
-rw-r--r-- | system/bat/bat.SlackBuild | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/system/bat/bat.SlackBuild b/system/bat/bat.SlackBuild index 982f5df0b0..347ed9e49c 100644 --- a/system/bat/bat.SlackBuild +++ b/system/bat/bat.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for bat # Copyright 2019-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> -# Copyright 2021-2022 Erich Ritz, Jenks, Oklahoma, USA +# Copyright 2021-2024 Erich Ritz, Jenks, Oklahoma, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,8 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=bat -VERSION=${VERSION:-0.22.1} -BUILD=${BUILD:-1} +VERSION=${VERSION:-0.24.0} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -141,7 +141,7 @@ mkdir vendor printf ' "package": "%s"' "$cksum" printf "}\n" - } | python -c "import sys, json; data = sys.stdin.read(); print json.dumps(json.loads(data), sort_keys=True, indent=4, separators=(',', ' : '))" > $dep-$ver/.cargo-checksum.json + } | python3 -c "import sys, json; data = sys.stdin.read(); print (json.dumps(json.loads(data), sort_keys=True, indent=4, separators=(',', ' : ')))" > $dep-$ver/.cargo-checksum.json done ) @@ -152,6 +152,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +export PATH="/opt/rust16/bin:$PATH" +if [ -z "$LD_LIBRARY_PATH" ]; then + export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX" +else + export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH" +fi + CARGO_HOME=.cargo \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -161,9 +168,6 @@ mkdir -p $PKG/usr/bin/ find target -name $PRGNAM -exec install -m 755 {} $PKG/usr/bin/$PRGNAM \; -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - mkdir -p $PKG/usr/share/bash-completion/completions find target -name $PRGNAM.bash -exec install -m 644 {} $PKG/usr/share/bash-completion/completions/$PRGNAM \; |