mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-04 01:50:19 +00:00
33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://geth.ethereum.org/
|
|
TERMUX_PKG_DESCRIPTION="Go implementation of the Ethereum protocol"
|
|
TERMUX_PKG_LICENSE="LGPL-3.0, GPL-3.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="1.11.6"
|
|
TERMUX_PKG_SRCURL=https://github.com/ethereum/go-ethereum/archive/v$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=1c34d609bc9d308ce1e0d4fbf5015ae07ef5ffa5144594824f85e39a54fd2b3f
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_SUGGESTS="geth-utils"
|
|
|
|
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 abidump bootnode checkpoint-admin clef devp2p ethkey evm faucet p2psim rlpdump; do
|
|
(cd ./cmd/"$applet" && go build -v)
|
|
done
|
|
unset applet
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
for applet in geth abidump bootnode checkpoint-admin clef devp2p ethkey evm faucet p2psim rlpdump; do
|
|
install -Dm700 \
|
|
"$TERMUX_PKG_SRCDIR/cmd/$applet/$applet" \
|
|
"$TERMUX_PREFIX"/bin/
|
|
done
|
|
unset applet
|
|
}
|