2019-09-08 17:08:35 +03:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://geth.ethereum.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Go implementation of the Ethereum protocol"
|
2022-02-28 10:27:28 +09:00
|
|
|
TERMUX_PKG_LICENSE="LGPL-3.0, GPL-3.0"
|
2022-01-31 20:18:51 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-03-29 18:20:41 +00:00
|
|
|
TERMUX_PKG_VERSION="1.10.17"
|
2019-09-08 17:08:35 +03:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/ethereum/go-ethereum/archive/v$TERMUX_PKG_VERSION.tar.gz
|
2022-03-29 18:20:41 +00:00
|
|
|
TERMUX_PKG_SHA256=00db123e1b23d3d904bd8a6bd4de8f3330d14db1622e8f22bf1653c94f03e09c
|
2021-10-04 13:43:31 +03:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2019-09-08 17:08:35 +03:00
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
termux_setup_golang
|
|
|
|
|
|
|
|
export GOPATH=$TERMUX_PKG_BUILDDIR
|
2020-09-11 22:16:57 +05:30
|
|
|
mkdir -p "${GOPATH}"/src/github.com/ethereum
|
2019-09-08 17:08:35 +03:00
|
|
|
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
|
|
|
|
}
|