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.

53 lines
1.3 KiB

  1. # SPDX-License-Identifier: GPL-3.0-only
  2. #
  3. # Copyright (C) 2021 ImmortalWrt.org
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=gg
  6. PKG_VERSION:=0.2.3
  7. PKG_RELEASE:=$(AUTORELEASE)
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://codeload.github.com/mzz2017/gg/tar.gz/v$(PKG_VERSION)?
  10. PKG_HASH:=ae508f1df0798c6b4c16c13035baa49c1e103a883c8f91ea2149446489ff1c78
  11. PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
  12. PKG_LICENSE:=AGPL-3.0-only
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_BUILD_DEPENDS:=golang/host
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_USE_MIPS16:=0
  17. GO_PKG:=github.com/mzz2017/gg
  18. GO_PKG_LDFLAGS_X:=$(GO_PKG)/cmd.Version=$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../../lang/golang/golang-package.mk
  21. define Package/gg
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=A command-line tool for one-click proxy
  25. URL:=https://github.com/mzz2017/gg
  26. DEPENDS:=@(aarch64||arm||x86_64) +ca-bundle
  27. endef
  28. define Package/gg/description
  29. gg is a command-line tool for one-click proxy in your research and
  30. development.
  31. You can just add gg before another command to redirect its traffic
  32. to your proxy without installing v2ray or anything else.
  33. Usage example: gg python -m pip install torch.
  34. endef
  35. define Package/gg/conffiles
  36. /root/.config/gg/config.toml
  37. /root/.ggconfig.toml
  38. /etc/ggconfig.toml
  39. endef
  40. $(eval $(call GoBinPackage,gg))
  41. $(eval $(call BuildPackage,gg))