7c9d09fb27
gettext: update from 0.20.2 to 0.21 gifski: update from 0.10.4 to 1.2.0 git-delta: update from 0.3.0 to 0.4.1
22 lines
827 B
Bash
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.1
|
|
TERMUX_PKG_SRCURL=https://github.com/dandavison/delta/archive/${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=5c2e46e398702b13b2768043ba5dc6bea899fb34271120bad4608ff9a64b0434
|
|
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
|
|
}
|