2020-03-01 18:18:32 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/dandavison/delta
|
|
|
|
TERMUX_PKG_DESCRIPTION="A syntax-highlighter for git and diff output"
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-03-06 19:14:43 +01:00
|
|
|
TERMUX_PKG_VERSION=0.12.1
|
2020-03-01 18:18:32 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/dandavison/delta/archive/${TERMUX_PKG_VERSION}.tar.gz
|
2022-03-06 19:14:43 +01:00
|
|
|
TERMUX_PKG_SHA256=1b97998841305909638008bd9fa3fca597907cb23830046fd2e610632cdabba3
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2020-03-01 18:18:32 +01:00
|
|
|
TERMUX_PKG_DEPENDS="git"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
2020-04-19 00:59:27 +02:00
|
|
|
rm -f Makefile release.Makefile
|
2020-03-01 23:41:19 +01:00
|
|
|
export CC_x86_64_unknown_linux_gnu=gcc
|
|
|
|
export CFLAGS_x86_64_unknown_linux_gnu="-O2"
|
2020-03-01 18:18:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
install -Dm700 -t "$TERMUX_PREFIX"/bin \
|
|
|
|
"$TERMUX_PKG_SRCDIR/target/$CARGO_TARGET_NAME"/release/delta
|
2020-08-12 06:33:05 +02:00
|
|
|
install -Dm600 "$TERMUX_PKG_SRCDIR"/etc/completion/completion.bash \
|
2020-03-01 18:18:32 +01:00
|
|
|
"$TERMUX_PREFIX"/share/bash-completion/completions/delta
|
|
|
|
}
|