mirror of
https://github.com/coolsnowwolf/packages
synced 2025-01-08 11:17:36 +08:00
v2raya: add new package
This commit is contained in:
parent
6398b41bd5
commit
1e5d30ae62
51
net/gg/Makefile
Normal file
51
net/gg/Makefile
Normal file
@ -0,0 +1,51 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
#
|
||||
# Copyright (C) 2021 ImmortalWrt.org
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=gg
|
||||
PKG_VERSION:=0.1.11
|
||||
PKG_RELEASE:=$(AUTORELEASE)
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/mzz2017/gg/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=ed800fc90f28c2f868e043993c74169936ab564f1d047f98f742539059473709
|
||||
|
||||
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_USE_MIPS16:=0
|
||||
|
||||
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/.ggconfig.toml
|
||||
endef
|
||||
|
||||
$(eval $(call GoBinPackage,gg))
|
||||
$(eval $(call BuildPackage,gg))
|
3
net/gg/test.sh
Normal file
3
net/gg/test.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
gg --version | grep "$PKG_VERSION"
|
Loading…
Reference in New Issue
Block a user