termux-packages/packages/git-delta/build.sh
Butta 27379692e6 bison: update from 3.7.1 to 3.7.2
git-delta: update from 0.4.1 to 0.4.3

librsvg: update from 2.49.4 to 2.49.5
2020-09-06 19:22:18 +05:30

22 lines
827 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/dandavison/delta
TERMUX_PKG_DESCRIPTION="A syntax-highlighter for git and diff output"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=0.4.3
TERMUX_PKG_SRCURL=https://github.com/dandavison/delta/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=78ee36ec30194fe261ccb585111b67adae5166e79170f9636e54cbf5427da54a
TERMUX_PKG_DEPENDS="git"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
rm -f Makefile release.Makefile
export CC_x86_64_unknown_linux_gnu=gcc
export CFLAGS_x86_64_unknown_linux_gnu="-O2"
}
termux_step_post_make_install() {
install -Dm700 -t "$TERMUX_PREFIX"/bin \
"$TERMUX_PKG_SRCDIR/target/$CARGO_TARGET_NAME"/release/delta
install -Dm600 "$TERMUX_PKG_SRCDIR"/etc/completion/completion.bash \
"$TERMUX_PREFIX"/share/bash-completion/completions/delta
}