aboutsummaryrefslogtreecommitdiff
path: root/system/exa
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2023-02-18 20:46:13 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-25 09:18:07 +0700
commit61f1c44a35596ab6893fd95103c18cc3f73f9d01 (patch)
tree20b24527579c9b5cc2370c2cb0ec33e93f5be6dc /system/exa
parent851533f2563f3b0b979ea41736da576d119d22fa (diff)
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>
Diffstat (limited to 'system/exa')
-rw-r--r--system/exa/exa.SlackBuild22
-rw-r--r--system/exa/exa.info2
2 files changed, 20 insertions, 4 deletions
diff --git a/system/exa/exa.SlackBuild b/system/exa/exa.SlackBuild
index be4746175e02..578e021306dd 100644
--- a/system/exa/exa.SlackBuild
+++ b/system/exa/exa.SlackBuild
@@ -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
diff --git a/system/exa/exa.info b/system/exa/exa.info
index 4b377a786b23..afc099c414dd 100644
--- a/system/exa/exa.info
+++ b/system/exa/exa.info
@@ -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 \