2019-09-08 16:08:35 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://geth.ethereum.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Go implementation of the Ethereum protocol"
|
|
|
|
TERMUX_PKG_LICENSE="LGPL-3.0"
|
2020-05-13 10:01:25 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
2020-11-08 22:04:33 +01:00
|
|
|
TERMUX_PKG_VERSION=1.9.23
|
2020-11-08 23:28:35 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2019-09-08 16:08:35 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/ethereum/go-ethereum/archive/v$TERMUX_PKG_VERSION.tar.gz
|
2020-11-08 22:04:33 +01:00
|
|
|
TERMUX_PKG_SHA256=3b3484b26889c5f54f209ff0a0896c5409159ea8e8ccd95ad6f933e6511ebcf6
|
2019-09-08 16:08:35 +02:00
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
termux_setup_golang
|
|
|
|
|
|
|
|
export GOPATH=$TERMUX_PKG_BUILDDIR
|
2020-09-11 18:46:57 +02:00
|
|
|
mkdir -p "${GOPATH}"/src/github.com/ethereum
|
2019-09-08 16:08:35 +02: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
|
|
|
|
}
|