termux-packages/packages/bat/build.sh

23 lines
808 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://github.com/sharkdp/bat
TERMUX_PKG_DESCRIPTION="A cat(1) clone with wings"
2019-01-20 22:39:59 +01:00
TERMUX_PKG_LICENSE="Apache-2.0"
2020-06-01 23:43:50 +02:00
TERMUX_PKG_VERSION=0.15.4
TERMUX_PKG_SRCURL=https://github.com/sharkdp/bat/archive/v$TERMUX_PKG_VERSION.tar.gz
2020-06-01 23:43:50 +02:00
TERMUX_PKG_SHA256=03b7c8ad6221ca87cecd71f9e3e2167f04f750401e2d3dcc574183aabeb76a8b
2019-01-19 09:58:17 +01:00
# bat calls less with '--RAW-CONTROL-CHARS' which busybox less does not support:
2019-04-14 17:46:58 +02:00
TERMUX_PKG_DEPENDS="less, zlib"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
CFLAGS="$CFLAGS $CPPFLAGS"
2019-09-10 22:09:37 +02:00
# 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() {
2018-10-18 05:51:48 +02:00
mkdir -p $TERMUX_PREFIX/share/man/man1
2020-03-29 21:44:15 +02:00
cp $(find . -name bat.1) $TERMUX_PREFIX/share/man/man1/
}