2 # Copyright (C) 2018 Sartura Ltd.
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
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
22 PKG_BUILD_DEPENDS
:=golang
/host
25 PKG_CONFIG_DEPENDS
:=CONFIG_BUILD_NLS
27 GO_PKG
:=github.com
/ethereum
/go-ethereum
28 GO_PKG_BUILD_PKG
:=github.com
/ethereum
/go-ethereum
/cmd
/geth
30 include $(INCLUDE_DIR
)/package.mk
31 include $(INCLUDE_DIR
)/nls.mk
32 include ..
/..
/lang
/golang
/golang-package.mk
37 TITLE
:=Ethereum Go client
38 URL
:=https
://geth.ethereum.org
/
39 DEPENDS
:=$(GO_ARCH_DEPENDS
) $(ICONV_DEPENDS
)
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.
48 TARGET_LDFLAGS
+= $(if
$(ICONV_FULL
),-liconv
)
50 define Package
/geth
/install
51 $(call GoPackage
/Package
/Install
/Bin
,$(1))
53 $(INSTALL_DIR
) $(1)/etc
/init.d
/
54 $(INSTALL_BIN
) .
/files
/geth.init
$(1)/etc
/init.d
/geth
57 $(eval
$(call GoBinPackage
,geth
))
58 $(eval
$(call BuildPackage
,geth
))