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