system/exa: Include man pages and completions.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2023-02-18 20:46:13 +09:00 committed by Willy Sudiarto Raharjo
parent 851533f256
commit 61f1c44a35
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 20 additions and 4 deletions

View file

@ -3,7 +3,7 @@
# Slackware build script for exa
# Copyright 2017-2021 Andrew Clemons, Wellington New Zealand
# Copyright 2022 Andrew Clemons, Tokyo Japan
# Copyright 2022-2023 Andrew Clemons, Tokyo Japan
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=exa
VERSION=${VERSION:-0.10.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -62,7 +62,7 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
CARGOTARGET="--target $ARCH-unknown-linux-gnu"
elif [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "aarch64" ] ; then
elif [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "aarch64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
CARGOTARGET="--target $ARCH-unknown-linux-gnu"
@ -138,10 +138,12 @@ 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 {} \;
sed -i "s/version = \"0.11.0-pre\"/version = \"$VERSION\"/" Cargo.lock
CARGO_HOME=.cargo \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
cargo build --release $CARGOTARGET
cargo build --offline --release $CARGOTARGET
mkdir -p $PKG/usr/bin
@ -150,6 +152,18 @@ 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
unzip -q -d accoutrements $CWD/$PRGNAM-accoutrements-v$VERSION.zip
install -Dm644 accoutrements/man/exa.1 $PKG/usr/man/man1/exa.1
install -Dm644 accoutrements/man/exa_colors.5 $PKG/usr/man/man5/exa_colors.5
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
install -Dm644 accoutrements/completions/*.bash $PKG/usr/share/bash-completion/completions/exa
install -Dm644 accoutrements/completions/*.fish $PKG/usr/share/fish/completions/exa.fish
install -Dm644 accoutrements/completions/*.zsh $PKG/usr/share/zsh/site-functions/_exa
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENCE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -2,6 +2,7 @@ PRGNAM="exa"
VERSION="0.10.1"
HOMEPAGE="https://github.com/ogham/exa"
DOWNLOAD="https://github.com/ogham/exa/archive/v0.10.1/exa-0.10.1.tar.gz \
https://github.com/ogham/exa/releases/download/v0.10.1/exa-accoutrements-v0.10.1.zip \
https://crates-io.s3-us-west-1.amazonaws.com/crates/ansi_term/ansi_term-0.12.1.crate \
https://crates-io.s3-us-west-1.amazonaws.com/crates/autocfg/autocfg-1.0.1.crate \
https://crates-io.s3-us-west-1.amazonaws.com/crates/bitflags/bitflags-1.2.1.crate \
@ -47,6 +48,7 @@ DOWNLOAD="https://github.com/ogham/exa/archive/v0.10.1/exa-0.10.1.tar.gz \
https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi/winapi-0.3.9.crate \
https://crates-io.s3-us-west-1.amazonaws.com/crates/zoneinfo_compiled/zoneinfo_compiled-0.5.1.crate"
MD5SUM="01f0ac8192de592f8db0acc99c101429 \
b579973e74923df3b0e8fe35f695d84d \
f44e8d1d2e61974b268852797530ea41 \
c6443ec8d007c729ba5482008d0c864d \
6799c26a7eacaf8e58d3e45c6c5add89 \