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.9.1
  10. PKG_RELEASE:=1
  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:=7394ae0eeac4b2aafa4bd56eef18c077088770bbce0962b215607b44369a5430
  14. PKG_MAINTAINER:=Mislav Novakovic <mislav.novakovic@sartura.hr>
  15. PKG_LICENSE:=GPL-3-or-later LGPL-3-or-later
  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))