rtl-sdr: switch to git tarball
[feed/packages.git] / net / geth / Makefile
1 #
2 # Copyright (C) 2018 Sartura Ltd.
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=go-ethereum
11 PKG_VERSION:=1.10.20
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/ethereum/go-ethereum/tar.gz/v${PKG_VERSION}?
16 PKG_HASH:=15ff54f0a4444eb9faa7c1f6219d3a1db5d547178b4eef6679bb601abc681f9d
17
18 PKG_MAINTAINER:=Mislav Novakovic <mislav.novakovic@sartura.hr>
19 PKG_LICENSE:=GPL-3.0-or-later LGPL-3.0-or-later
20 PKG_LICENSE_FILES:=COPYING COPYING.LESSER
21
22 PKG_BUILD_DEPENDS:=golang/host
23 PKG_BUILD_PARALLEL:=1
24 PKG_USE_MIPS16:=0
25 PKG_CONFIG_DEPENDS:=CONFIG_BUILD_NLS
26
27 GO_PKG:=github.com/ethereum/go-ethereum
28 GO_PKG_BUILD_PKG:=github.com/ethereum/go-ethereum/cmd/geth
29
30 include $(INCLUDE_DIR)/package.mk
31 include $(INCLUDE_DIR)/nls.mk
32 include ../../lang/golang/golang-package.mk
33
34 define Package/geth
35 SECTION:=net
36 CATEGORY:=Network
37 TITLE:=Ethereum Go client
38 URL:=https://geth.ethereum.org/
39 DEPENDS:=$(GO_ARCH_DEPENDS) $(ICONV_DEPENDS)
40 endef
41
42 define Package/geth/description
43 Ethereum is a decentralized platform that runs smart contracts, applications
44 that run exactly as programmed without possibility of downtime, censorship,
45 fraud or third party interference.
46 endef
47
48 TARGET_LDFLAGS += $(if $(ICONV_FULL),-liconv)
49
50 define Package/geth/install
51 $(call GoPackage/Package/Install/Bin,$(1))
52
53 $(INSTALL_DIR) $(1)/etc/init.d/
54 $(INSTALL_BIN) ./files/geth.init $(1)/etc/init.d/geth
55 endef
56
57 $(eval $(call GoBinPackage,geth))
58 $(eval $(call BuildPackage,geth))