0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-06 03:46:41 +00:00
Termux Github Actions cff6425f02 bump(main/geth): 1.14.12
This commit has been automatically submitted by Github Actions.
2024-11-19 18:14:36 +00:00

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.14.12"
TERMUX_PKG_SRCURL=https://github.com/ethereum/go-ethereum/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=9f9deab753c072cbb26e8a14bc245760225c27ff6a9f397d25711f403c138d54
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 abidump abigen blsync bootnode clef devp2p era ethkey evm geth rlpdump; do
go -C ./cmd/"$applet" build -v
done
unset applet
}
termux_step_make_install() {
for applet in abidump abigen blsync bootnode clef devp2p era ethkey evm geth rlpdump; do
install -Dm700 \
"$TERMUX_PKG_SRCDIR/cmd/$applet/$applet" \
"$TERMUX_PREFIX"/bin/
done
unset applet
}