Browse Source

new package: git-delta (#5002)

master
Leonid Plyushch 5 years ago
committed by GitHub
parent
commit
9e11b499ee
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      packages/git-delta/build.sh

19
packages/git-delta/build.sh

@ -0,0 +1,19 @@
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.0.16
TERMUX_PKG_SRCURL=https://github.com/dandavison/delta/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=631349484bb52f3bb1c22385e19d98903c094212e83fe109f97aeff0281cf00e
TERMUX_PKG_DEPENDS="git"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
rm -f Makefile
}
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
}
Loading…
Cancel
Save