1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 20:33:58 +02:00
openwrt-packages/net/geth/Makefile
Josef Schlehofer f18ae690c8
geth: update to version 1.9.25
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-02-14 10:31:08 +01:00

58 lines
1.5 KiB
Makefile

#
# Copyright (C) 2018 Sartura Ltd.
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=go-ethereum
PKG_VERSION:=1.9.25
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/ethereum/go-ethereum/tar.gz/v${PKG_VERSION}?
PKG_HASH:=d7b733aeef4eba97f5351ba435001fa7365f55adabffdfdda909700335e98b0e
PKG_MAINTAINER:=Mislav Novakovic <mislav.novakovic@sartura.hr>
PKG_LICENSE:=GPL-3.0-or-later LGPL-3.0-or-later
PKG_LICENSE_FILES:=COPYING COPYING.LESSER
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
GO_PKG:=github.com/ethereum/go-ethereum
GO_PKG_BUILD_PKG:=github.com/ethereum/go-ethereum/cmd/geth
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
include ../../lang/golang/golang-package.mk
define Package/geth
SECTION:=net
CATEGORY:=Network
TITLE:=Ethereum Go client
URL:=https://geth.ethereum.org/
DEPENDS:=$(GO_ARCH_DEPENDS) $(ICONV_DEPENDS)
endef
define Package/geth/description
Ethereum is a decentralized platform that runs smart contracts, applications
that run exactly as programmed without possibility of downtime, censorship,
fraud or third party interference.
endef
TARGET_LDFLAGS += -liconv
define Package/geth/install
$(call GoPackage/Package/Install/Bin,$(1))
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_BIN) ./files/geth.init $(1)/etc/init.d/geth
endef
$(eval $(call GoBinPackage,geth))
$(eval $(call BuildPackage,geth))