1 # SPDX-License-Identifier: GPL-3.0-only
3 # Copyright (C) 2021 ImmortalWrt.org
5 include $(TOPDIR
)/rules.mk
9 PKG_RELEASE
:=$(AUTORELEASE
)
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
:=d2312eb3feaa331e9139ab5f683516baa9cd8551753a6be59b902214c64b6021
15 PKG_MAINTAINER
:=Tianling Shen
<cnsztl@immortalwrt.org
>
16 PKG_LICENSE
:=AGPL-3.0
-only
17 PKG_LICENSE_FILES
:=LICENSE
19 PKG_BUILD_DEPENDS
:=golang
/host
23 GO_PKG
:=github.com
/mzz2017
/gg
24 GO_PKG_LDFLAGS_X
:=$(GO_PKG
)/cmd.Version
=$(PKG_VERSION
)
26 include $(INCLUDE_DIR
)/package.mk
27 include ..
/..
/lang
/golang
/golang-package.mk
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
37 define Package
/gg
/description
38 gg is a command-line tool for one-click proxy in your research and
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.
46 define Package
/gg
/conffiles
47 /root
/.config
/gg
/config.toml
52 $(eval
$(call GoBinPackage
,gg
))
53 $(eval
$(call BuildPackage
,gg
))