4e9344e91b
This commit has been automatically submitted by Github Actions.
31 lines
1004 B
Bash
31 lines
1004 B
Bash
TERMUX_PKG_HOMEPAGE=https://geth.ethereum.org/
|
|
TERMUX_PKG_DESCRIPTION="Go implementation of the Ethereum protocol"
|
|
TERMUX_PKG_LICENSE="LGPL-3.0"
|
|
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
|
TERMUX_PKG_VERSION=1.10.7
|
|
TERMUX_PKG_SRCURL=https://github.com/ethereum/go-ethereum/archive/v$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=5bfe24930e2837106994d2fd9164cde8ab1ad9159a97bfcf0e466a963653e0b7
|
|
|
|
termux_step_make() {
|
|
termux_setup_golang
|
|
|
|
export GOPATH=$TERMUX_PKG_BUILDDIR
|
|
mkdir -p "${GOPATH}"/src/github.com/ethereum
|
|
ln -sf "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/github.com/ethereum/go-ethereum
|
|
|
|
cd "$GOPATH"/src/github.com/ethereum/go-ethereum
|
|
for applet in geth abigen bootnode ethkey evm rlpdump puppeth; do
|
|
(cd ./cmd/"$applet" && go build -v)
|
|
done
|
|
unset applet
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
for applet in geth abigen bootnode ethkey evm rlpdump puppeth; do
|
|
install -Dm700 \
|
|
"$TERMUX_PKG_SRCDIR/cmd/$applet/$applet" \
|
|
"$TERMUX_PREFIX"/bin/
|
|
done
|
|
unset applet
|
|
}
|