summaryrefslogtreecommitdiffstats
path: root/system/bat
diff options
context:
space:
mode:
author Erich Ritz <erich.public@protonmail.com>2023-02-14 14:48:36 -0600
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-18 10:06:38 +0700
commit02b3840e1986d7ffe9717482b1b757b57220f28e (patch)
tree83dc449205dce656845033911a4f40957ee0086c /system/bat
parenta69f82a0ddafce005e899838a8a8f6a96758e96e (diff)
downloadslackbuilds-02b3840e1986d7ffe9717482b1b757b57220f28e.tar.gz
slackbuilds-02b3840e1986d7ffe9717482b1b757b57220f28e.tar.xz
system/bat: Switch dependency to rust16.
Signed-off-by: Erich Ritz <erich.public@protonmail.com> Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/bat')
-rw-r--r--system/bat/README15
-rw-r--r--system/bat/bat.SlackBuild11
-rw-r--r--system/bat/bat.info2
3 files changed, 23 insertions, 5 deletions
diff --git a/system/bat/README b/system/bat/README
index 22e5e908b7..caedaf1c7b 100644
--- a/system/bat/README
+++ b/system/bat/README
@@ -1,4 +1,15 @@
bat is a cat clone with syntax highlighting and Git integration.
-Rust 1.60 or newer is a compile-time dependency, which is available from
-the Slackware tree in extra/rust-for-mozilla/.
+bat prints the syntax-highlighted content of a collection of FILEs to
+the terminal. If no FILE is specified, or when FILE is '-', it reads
+from standard input.
+
+bat supports a large number of programming and markup languages. It also
+communicates with git(1) to show modifications with respect to the git
+index. bat automatically pipes its output through a pager (by default:
+less).
+
+Whenever the output of bat goes to a non-interactive terminal, i.e. when
+the output is piped into another process or into a file, bat will act as
+a drop-in replacement for cat(1) and fall back to printing the plain
+file contents.
diff --git a/system/bat/bat.SlackBuild b/system/bat/bat.SlackBuild
index 982f5df0b0..c26b53c0d6 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-2023 Erich Ritz, Jenks, Oklahoma, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=bat
VERSION=${VERSION:-0.22.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -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" \
diff --git a/system/bat/bat.info b/system/bat/bat.info
index 260bcb73ea..f9ea9ee37e 100644
--- a/system/bat/bat.info
+++ b/system/bat/bat.info
@@ -295,6 +295,6 @@ MD5SUM="079a00e594fcd588bfaa6c21fc16a05f \
331d07cdd036d528ede2f69c7ff0beb6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="%README%"
+REQUIRES="rust16"
MAINTAINER="Erich Ritz"
EMAIL="erich.public@protonmail.com"