aboutsummaryrefslogtreecommitdiff
path: root/system/bat/bat.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/bat/bat.SlackBuild')
-rw-r--r--system/bat/bat.SlackBuild15
1 files changed, 14 insertions, 1 deletions
diff --git a/system/bat/bat.SlackBuild b/system/bat/bat.SlackBuild
index 111bfb332f1bb..621c0761e0028 100644
--- a/system/bat/bat.SlackBuild
+++ b/system/bat/bat.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=bat
-VERSION=${VERSION:-0.21.0}
+VERSION=${VERSION:-0.22.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -164,6 +164,19 @@ 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 \;
+
+mkdir -p $PKG/usr/share/zsh/site-functions
+find target -name $PRGNAM.zsh -exec install -m 644 {} $PKG/usr/share/zsh/site-functions/_$PRGNAM \;
+
+mkdir -p $PKG/usr/share/fish/vendor_completions.d
+find target -name $PRGNAM.fish -exec install -m 644 {} $PKG/usr/share/fish/vendor_completions.d/$PRGNAM.fish \;
+
+mkdir -p $PKG/usr/man/man1
+find target -name $PRGNAM.1 -exec install -m 644 {} $PKG/usr/man/man1/$PRGNAM.1 \;
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a -r \
LICENSE-APACHE LICENSE-MIT README.md CHANGELOG.md CONTRIBUTING.md \