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