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.

48 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=delve
  3. PKG_VERSION:=1.8.2
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/go-delve/delve/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=fbf6ea7e1ed0c92e543c7f5f2343928e185e11e4cba1c7c9d3bfc28d1c323900
  8. PKG_LICENSE:=MIT
  9. PKG_LICENSE_FILES:=LICENSE
  10. PKG_MAINTAINER:=Niels Widger <niels@qacafe.com>
  11. PKG_BUILD_DEPENDS:=golang/host
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_USE_MIPS16:=0
  14. GO_PKG:=github.com/go-delve/delve/
  15. GO_PKG_BUILD_PKG:=github.com/go-delve/delve/cmd/dlv/
  16. GO_PKG_LDFLAGS_X:=main.Build=$(PKG_VERSION)
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../../lang/golang/golang-package.mk
  19. # this is a subset of $(GO_ARCH_DEPENDS) as delve does not support all
  20. # architectures, see build constraints in
  21. # https://github.com/go-delve/delve/blob/v$(PKG_VERSION)/pkg/proc/native/support_sentinel.go
  22. DELVE_GO_ARCH_DEPENDS:=@(aarch64||i386||x86_64)
  23. define Package/delve
  24. SECTION:=devel
  25. CATEGORY:=Development
  26. TITLE:=Debugger for the Go programming language
  27. URL:=https://github.com/go-delve/delve
  28. DEPENDS:=$(DELVE_GO_ARCH_DEPENDS)
  29. endef
  30. define Package/delve/description
  31. Delve is a debugger for the Go programming language. The goal of the
  32. project is to provide a simple, full featured debugging tool for Go.
  33. Delve should be easy to invoke and easy to use. Chances are if you're
  34. using a debugger, things aren't going your way. With that in mind,
  35. Delve should stay out of your way as much as possible.
  36. endef
  37. $(eval $(call GoBinPackage,delve))
  38. $(eval $(call BuildPackage,delve))