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
:=0ad99e4580212364705762c2a8b964d54d4025b446d4d7e32fa749f4b6b38228
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
))