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.

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