You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.4 KiB

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