mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-01 04:01:23 +08:00

Fixes: https://github.com/coolsnowwolf/lede/issues/13434 https://github.com/coolsnowwolf/packages/issues/921
65 lines
1.8 KiB
Makefile
65 lines
1.8 KiB
Makefile
# SPDX-License-Identifier: GPL-3.0-only
|
|
#
|
|
# Copyright (C) 2021 ImmortalWrt.org
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=uugamebooster
|
|
PKG_VERSION:=8.8.12
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(ARCH).tar.gz
|
|
PKG_SOURCE_URL:=https://uu.gdl.netease.com/uuplugin/openwrt-$(ARCH)/v$(PKG_VERSION)/uu.tar.gz?
|
|
ifeq ($(ARCH),aarch64)
|
|
PKG_HASH:=da1cda8e81e77aa6f5cc32ee619686ea525d860f8cffec52b60fa4a6a303bd92
|
|
else ifeq ($(ARCH),arm)
|
|
PKG_HASH:=b961de2f50df9cca9b485d448e98e012a99972678a1170d8075f5a94ea33fce5
|
|
else ifeq ($(ARCH),mipsel)
|
|
PKG_HASH:=ed4ffe623b7fbc0b9dc331eed7367be3b5fed794cfc159c3d055693097163035
|
|
else ifeq ($(ARCH),x86_64)
|
|
PKG_HASH:=a62270c3ed9e264c4de42cf7bfbfa4a28428a6e65455eedbe96c3223ca05e1d0
|
|
endif
|
|
|
|
PKG_LICENSE:=Proprietary
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
STRIP:=true
|
|
|
|
TAR_CMD=$(HOST_TAR) -C $(1)/ $(TAR_OPTIONS)
|
|
|
|
define Package/uugamebooster
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=@(aarch64||arm||mipsel||x86_64) +kmod-tun
|
|
TITLE:=NetEase UU Game Booster
|
|
URL:=https://uu.163.com
|
|
endef
|
|
|
|
define Package/uugamebooster/description
|
|
NetEase's UU Game Booster Accelerates Triple-A Gameplay and Market.
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/uugamebooster/conffiles
|
|
/.uuplugin_uuid
|
|
/usr/share/uugamebooster/uu.conf
|
|
endef
|
|
|
|
define Package/uugamebooster/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uuplugin $(1)/usr/bin/uugamebooster
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/xtables-nft-multi $(1)/usr/bin/xtables-nft-multi
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/uugamebooster
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/uu.conf $(1)/usr/share/uugamebooster/uu.conf
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d
|
|
$(INSTALL_CONF) ./files/uugamebooster.config $(1)/etc/config/uugamebooster
|
|
$(INSTALL_BIN) ./files/uugamebooster.init $(1)/etc/init.d/uugamebooster
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,uugamebooster))
|