2020-12-16 11:03:03 +01:00
|
|
|
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"
|
2022-04-26 20:12:06 +02:00
|
|
|
TERMUX_PKG_VERSION="1.8.3"
|
2020-12-16 11:03:03 +01:00
|
|
|
TERMUX_PKG_DEPENDS="golang, git"
|
|
|
|
TERMUX_PKG_SRCURL=https://github.com/go-delve/delve/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2022-04-26 20:12:06 +02:00
|
|
|
TERMUX_PKG_SHA256=b18dc56de8768da055125663e7c368ecf24cdac4d72d9080ac90dc0ee99ea852
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2020-12-16 11:03:03 +01:00
|
|
|
TERMUX_PKG_BLACKLISTED_ARCHES="arm, i686"
|
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
termux_setup_golang
|
|
|
|
cd $TERMUX_PKG_SRCDIR
|
2021-05-25 04:09:23 +02:00
|
|
|
|
2020-12-16 11:03:03 +01:00
|
|
|
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/
|
2021-07-10 16:00:18 +02:00
|
|
|
go get -d -v
|
2020-12-16 11:03:03 +01:00
|
|
|
go build
|
|
|
|
}
|
2021-05-25 04:09:23 +02:00
|
|
|
|
2020-12-16 11:03:03 +01:00
|
|
|
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
|
|
|
|
}
|