termux-packages/packages/exa/build.sh

42 lines
1.6 KiB
Bash
Raw Normal View History

2018-10-18 05:57:12 +02:00
TERMUX_PKG_HOMEPAGE=https://the.exa.website
TERMUX_PKG_DESCRIPTION="A modern replacement for ls"
2019-01-20 22:39:59 +01:00
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
2021-05-04 16:13:22 +02:00
TERMUX_PKG_VERSION=0.10.1
2021-08-03 21:56:01 +02:00
TERMUX_PKG_REVISION=2
2021-05-04 16:13:22 +02:00
TERMUX_PKG_SRCURL=https://github.com/ogham/exa/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=ff0fa0bfc4edef8bdbbb3cabe6fdbd5481a71abbbcc2159f402dea515353ae7c
2021-01-07 05:57:52 +01:00
TERMUX_PKG_DEPENDS="zlib, libgit2"
TERMUX_PKG_BUILD_IN_SRC=true
2018-10-18 05:57:12 +02:00
termux_step_pre_configure() {
termux_setup_rust
2021-01-06 11:02:12 +01:00
CFLAGS="$CPPFLAGS"
2018-10-18 05:57:12 +02:00
}
termux_step_post_make_install() {
mkdir -p $TERMUX_PREFIX/share/man/man1
2021-01-06 11:02:12 +01:00
mkdir -p $TERMUX_PREFIX/share/man/man5
pandoc --standalone --to man $TERMUX_PKG_SRCDIR/man/exa.1.md --output $TERMUX_PREFIX/share/man/man1/exa.1
2021-07-30 16:17:32 +02:00
pandoc --standalone --to man $TERMUX_PKG_SRCDIR/man/exa_colors.5.md --output $TERMUX_PREFIX/share/man/man5/exa_colors.5
# For 0.10.1, this is the location of the completion files,
# but they were moved after the release
if [ -f 'completions/completions.bash' ]; then
install -Dm600 completions/completions.bash \
2021-08-03 21:56:01 +02:00
$TERMUX_PREFIX/share/bash-completion/completions/exa
2021-07-30 16:17:32 +02:00
install -Dm600 completions/completions.fish \
$TERMUX_PREFIX/share/fish/completions/exa.fish
install -Dm600 completions/completions.zsh \
$TERMUX_PREFIX/share/zsh/site-functions/_exa
else
install -Dm600 completions/bash/exa \
2021-08-03 21:56:01 +02:00
$TERMUX_PREFIX/share/bash-completion/completions/exa
2021-07-30 16:17:32 +02:00
install -Dm600 completions/fish/exa.fish \
$TERMUX_PREFIX/share/fish/completions/exa.fish
install -Dm600 completions/zsh/_exa \
$TERMUX_PREFIX/share/zsh/site-functions/_exa
fi
2018-10-18 05:57:12 +02:00
}