mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-30 21:15:13 +08:00
update 2026-10-07 18:47:42
This commit is contained in:
1 parent
617f7ca2a6
commit
bd061545ed
4832 files changed
+1693456
No files matched your search
@@ -0,0 +1,77 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# Copyright (C) 2025 ImmortalWrt.org
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=tuic-client
|
||||
PKG_UPSTREAM_VERSION:=2.0.0-dev7
|
||||
PKG_VERSION:=2.0.0_pre7
|
||||
PKG_RELEASE:=1
|
||||
|
||||
TUIC_HASH_AARCH64:=8bd5069db703993aee8c8d83fc9e9979e2bcc645c366bcb6f5c6da110d3c5ee5
|
||||
TUIC_HASH_ARMV7:=5b84acfa582385992d05287e26e1d863b0ac55080fb26300493866305758c357
|
||||
TUIC_HASH_ARMV7HF:=2be6e93400528fa49a8114a49420cb0a96402f4c615d8683b9e1863e804c943f
|
||||
TUIC_HASH_I686:=d0ba6fe4074bcd47056470985b0adef393342a27f0c2ff6a15c6023f9e43c97c
|
||||
TUIC_HASH_X86_64:=6b11db38f4e9737f65a4f77044fa7e4a80d7debfd4dc1f6d32465598c8463b71
|
||||
|
||||
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
||||
PKG_LICENSE:=GPL-3.0-or-later
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
ifeq ($(ARCH),aarch64)
|
||||
TUIC_ARCH:=tuic-client-aarch64-linux-musl
|
||||
PKG_HASH:=$(TUIC_HASH_AARCH64)
|
||||
else ifeq ($(ARCH),arm)
|
||||
ARM_CPU_FEATURES:=$(word 2,$(subst +,$(space),$(call qstrip,$(CONFIG_CPU_TYPE))))
|
||||
ifeq ($(ARM_CPU_FEATURES),)
|
||||
TUIC_ARCH:=tuic-client-armv7-linux-musl
|
||||
PKG_HASH:=$(TUIC_HASH_ARMV7)
|
||||
else
|
||||
TUIC_ARCH:=tuic-client-armv7-linux-muslhf
|
||||
PKG_HASH:=$(TUIC_HASH_ARMV7HF)
|
||||
endif
|
||||
else ifeq ($(ARCH),i386)
|
||||
TUIC_ARCH:=tuic-client-i686-linux-musl
|
||||
PKG_HASH:=$(TUIC_HASH_I686)
|
||||
else ifeq ($(ARCH),x86_64)
|
||||
TUIC_ARCH:=tuic-client-x86_64-linux-musl
|
||||
PKG_HASH:=$(TUIC_HASH_X86_64)
|
||||
else
|
||||
PKG_SOURCE:=dummy
|
||||
PKG_HASH:=dummy
|
||||
endif
|
||||
|
||||
define Download/tuic-client
|
||||
URL:=https://github.com/Itsusinn/tuic/releases/download/v$(PKG_UPSTREAM_VERSION)/
|
||||
URL_FILE:=$(TUIC_ARCH)
|
||||
FILE:=$(TUIC_ARCH)-$(PKG_UPSTREAM_VERSION)
|
||||
HASH:=$(PKG_HASH)
|
||||
endef
|
||||
|
||||
$(eval $(call Download,tuic-client))
|
||||
|
||||
define Package/tuic-client
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Web Servers/Proxies
|
||||
TITLE:=TUIC proxy protocol client
|
||||
URL:=https://github.com/Itsusinn/tuic
|
||||
DEPENDS:=@USE_MUSL @(aarch64||arm_v7||i386||x86_64) @!(TARGET_x86_geode||TARGET_x86_legacy)
|
||||
endef
|
||||
|
||||
define Package/tuic-client/description
|
||||
Delicately-TUICed 0-RTT proxy protocol client.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/tuic-client/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(DL_DIR)/$(TUIC_ARCH)-$(PKG_UPSTREAM_VERSION) $(1)/usr/bin/tuic-client
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,tuic-client))
|
||||
Reference in new issue
Block a user