termux-packages/packages/direnv/build.sh
Saurabh Charde 67702b13c4 direnv: Fix installation location and update to 2.28.0
direnv installs it binary to $DESTDIR/$BINDIR, where
$BINDIR=${PREFIX}/bin and $PREFIX=/usr/local

We set $DESTDIR=$TERMUX_PREFIX while leaving direnv's $PREFIX unchanged
causing the binary to install in $TERMUX_PREFIX/usr/local/bin instead of
$TERMUX_PREFIX/bin (assuming we aren't installing it in
$TERMUX_PREFIX/local/bin like most termux packages)

Signed-off-by: Saurabh Charde <saurabhchardereal@gmail.com>
2021-03-16 10:31:12 +01:00

18 lines
511 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/direnv/direnv
TERMUX_PKG_DESCRIPTION="Environment switcher for shell"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.28.0
TERMUX_PKG_SRCURL=https://github.com/direnv/direnv/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=fa539c63034b6161d8238299bb516dcec79e8905cd43ff2b9559ad6bf047cc93
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
termux_setup_golang
make
}
termux_step_make_install() {
make install PREFIX=$TERMUX_PREFIX
}