termux-packages/packages/delve/build.sh
Leonid Pliushch 4b8c077711
Revert "Merge pull request #7104 from thunder-coding/cache-godeps"
This reverts commit f6892c38d8, reversing
changes made to 4d9075fea3.
2021-07-10 17:00:18 +03:00

27 lines
1.0 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/go-delve/delve
TERMUX_PKG_DESCRIPTION="A debugger for the Go programming language"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Krishna kanhaiya @kcubeterm"
TERMUX_PKG_VERSION=1.6.1
TERMUX_PKG_DEPENDS="golang, git"
TERMUX_PKG_SRCURL=https://github.com/go-delve/delve/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=e73f7fc063632268d3bdf53486aeafd98cceb8f86f4af56903dedfebaefe690d
TERMUX_PKG_BLACKLISTED_ARCHES="arm, i686"
termux_step_make() {
termux_setup_golang
cd $TERMUX_PKG_SRCDIR
mkdir -p "$TERMUX_PKG_BUILDDIR"/src/github.com/go-delve/
mkdir -p "$TERMUX_PREFIX"/share/doc/delve
cp -a "$TERMUX_PKG_SRCDIR" "$TERMUX_PKG_BUILDDIR"/src/github.com/go-delve/delve/
cd "$TERMUX_PKG_BUILDDIR"/src/github.com/go-delve/delve/cmd/dlv/
go get -d -v
go build
}
termux_step_make_install() {
install -Dm700 -t "$TERMUX_PREFIX"/bin "$TERMUX_PKG_BUILDDIR"/src/github.com/go-delve/delve/cmd/dlv/dlv
cp -a "$TERMUX_PKG_SRCDIR"/Documentation/* "$TERMUX_PREFIX"/share/doc/delve
}