termux-packages/packages/git-delta/build.sh

23 lines
832 B
Bash
Raw Normal View History

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-03-08 18:10:26 +01:00
TERMUX_PKG_VERSION=0.0.17
TERMUX_PKG_REVISION=1
2020-03-01 18:18:32 +01:00
TERMUX_PKG_SRCURL=https://github.com/dandavison/delta/archive/${TERMUX_PKG_VERSION}.tar.gz
2020-03-08 18:10:26 +01:00
TERMUX_PKG_SHA256=ac1f26ac5ea10d43b300675189c49437dcae7a9fca7e51f615058ab0550d27e5
2020-03-01 18:18:32 +01:00
TERMUX_PKG_DEPENDS="git"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
rm -f 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
install -Dm600 "$TERMUX_PKG_SRCDIR"/completion/bash/completion.sh \
"$TERMUX_PREFIX"/share/bash-completion/completions/delta
}