2018-10-08 01:34:29 +00:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/sharkdp/bat
|
|
|
|
TERMUX_PKG_DESCRIPTION="A cat(1) clone with wings"
|
2019-01-20 21:39:59 +00:00
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
2020-12-20 13:16:34 +00:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-09-11 00:26:40 +00:00
|
|
|
TERMUX_PKG_VERSION="0.22.1"
|
2018-10-08 01:34:29 +00:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/sharkdp/bat/archive/v$TERMUX_PKG_VERSION.tar.gz
|
2022-09-11 00:26:40 +00:00
|
|
|
TERMUX_PKG_SHA256=25e45debf7c86794281d63a51564feefa96fdfdf575381e3adc5c06653ecaeca
|
2021-10-04 10:43:31 +00:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2019-01-19 08:58:17 +00:00
|
|
|
# bat calls less with '--RAW-CONTROL-CHARS' which busybox less does not support:
|
2020-01-18 22:18:11 +00:00
|
|
|
TERMUX_PKG_DEPENDS="less, libgit2"
|
2019-08-12 15:28:41 +00:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2019-04-14 21:59:45 +00:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
CFLAGS="$CFLAGS $CPPFLAGS"
|
2019-09-10 20:09:37 +00: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=""
|
2019-04-14 21:59:45 +00:00
|
|
|
}
|
|
|
|
|
2018-10-08 01:34:29 +00:00
|
|
|
termux_step_post_make_install() {
|
2018-10-18 03:51:48 +00:00
|
|
|
mkdir -p $TERMUX_PREFIX/share/man/man1
|
2020-03-29 19:44:15 +00:00
|
|
|
cp $(find . -name bat.1) $TERMUX_PREFIX/share/man/man1/
|
2018-10-08 01:34:29 +00:00
|
|
|
}
|