27317f2f99e4c0266e4d398f2f62d1e1e391955b
[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_LICENSE:=ASL-2.0
11 PKG_MAINTAINER:=Mislav Novakovic <mislav.novakovic@sartura.hr>
12
13 PKG_NAME:=go-ethereum
14 PKG_VERSION:=1.8.18
15 PKG_RELEASE:=1
16
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_SOURCE_URL:=https://codeload.github.com/ethereum/go-ethereum/tar.gz/v${PKG_VERSION}?
19 PKG_HASH:=cbab18a733298830c9ed1e19c1ece37edf417fd55ec8f198803048ecc3ffa0b9
20
21 PKG_BUILD_DEPENDS:=golang/host
22 PKG_BUILD_PARALLEL:=1
23 PKG_USE_MIPS16:=0
24
25 GO_PKG:=github.com/ethereum/go-ethereum
26 GO_PKG_BUILD_PKG:=github.com/ethereum/go-ethereum/cmd/geth
27
28 include $(INCLUDE_DIR)/package.mk
29 include ../../lang/golang/golang-package.mk
30
31 define Package/geth
32 SECTION:=net
33 CATEGORY:=Network
34 TITLE:=Ethereum Go client
35 URL:=https://geth.ethereum.org/
36 DEPENDS:=$(GO_ARCH_DEPENDS)
37 PKGARCH:=all
38 endef
39
40 define Package/geth/description
41 Ethereum is a decentralized platform that runs smart contracts, applications
42 that run exactly as programmed without possibility of downtime, censorship,
43 fraud or third party interference.
44 endef
45
46 define Package/geth/install
47 $(call GoPackage/Package/Install/Bin,$(1))
48
49 $(INSTALL_DIR) $(1)/etc/init.d/
50 $(INSTALL_BIN) ./files/geth.init $(1)/etc/init.d/geth
51 endef
52
53 $(eval $(call GoBinPackage,geth))
54 $(eval $(call BuildPackage,geth))