1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-19 13:14:09 +00:00
termux-packages/packages/bat/build.sh
Termux Github Actions dfb750a178 bat: update to 0.22.1
This commit has been automatically submitted by Github Actions.
2022-09-11 00:26:40 +00:00

24 lines
872 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/sharkdp/bat
TERMUX_PKG_DESCRIPTION="A cat(1) clone with wings"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.22.1"
TERMUX_PKG_SRCURL=https://github.com/sharkdp/bat/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=25e45debf7c86794281d63a51564feefa96fdfdf575381e3adc5c06653ecaeca
TERMUX_PKG_AUTO_UPDATE=true
# bat calls less with '--RAW-CONTROL-CHARS' which busybox less does not support:
TERMUX_PKG_DEPENDS="less, libgit2"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
CFLAGS="$CFLAGS $CPPFLAGS"
# See https://github.com/nagisa/rust_libloading/issues/54
export CC_x86_64_unknown_linux_gnu=gcc
export CFLAGS_x86_64_unknown_linux_gnu=""
}
termux_step_post_make_install() {
mkdir -p $TERMUX_PREFIX/share/man/man1
cp $(find . -name bat.1) $TERMUX_PREFIX/share/man/man1/
}