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.

57 lines
1.5 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.25
  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:=d7b733aeef4eba97f5351ba435001fa7365f55adabffdfdda909700335e98b0e
  14. PKG_MAINTAINER:=Mislav Novakovic <mislav.novakovic@sartura.hr>
  15. PKG_LICENSE:=GPL-3.0-or-later LGPL-3.0-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 $(INCLUDE_DIR)/nls.mk
  24. include ../../lang/golang/golang-package.mk
  25. define Package/geth
  26. SECTION:=net
  27. CATEGORY:=Network
  28. TITLE:=Ethereum Go client
  29. URL:=https://geth.ethereum.org/
  30. DEPENDS:=$(GO_ARCH_DEPENDS) $(ICONV_DEPENDS)
  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. TARGET_LDFLAGS += -liconv
  38. define Package/geth/install
  39. $(call GoPackage/Package/Install/Bin,$(1))
  40. $(INSTALL_DIR) $(1)/etc/init.d/
  41. $(INSTALL_BIN) ./files/geth.init $(1)/etc/init.d/geth
  42. endef
  43. $(eval $(call GoBinPackage,geth))
  44. $(eval $(call BuildPackage,geth))