# SPDX-License-Identifier: GPL-3.0-only # # Copyright (C) 2021 ImmortalWrt.org include $(TOPDIR)/rules.mk PKG_NAME:=uugamebooster PKG_VERSION:=14.0.6 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(ARCH).tar.gz PKG_SOURCE_URL:=https://uurouter.gdl.netease.com/uuplugin/openwrt-$(ARCH)/v$(PKG_VERSION)/uu.tar.gz? ifeq ($(ARCH),aarch64) PKG_HASH:=4fe6fcad525c525ad530af69f102d90c1189330e4e3c3183b577ddde27731e2a else ifeq ($(ARCH),arm) PKG_HASH:=e8693a284d0a9445e73f8d2e9c3d330364cc6371d63c19da03f8e8c47f076caf else ifeq ($(ARCH),mipsel) PKG_HASH:=6fd2497bfdcf228de050119f7f593547a0da3eca9c50baa6bf8d5da6e366c575 else ifeq ($(ARCH),x86_64) PKG_HASH:=1becd5ef81d257b22002f208cd303b04e421c7da4231523b7d82da2c7193b57f endif PKG_LICENSE:=Proprietary PKG_MAINTAINER:=Tianling Shen 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) $(CURDIR)/files/uugamebooster.config $(1)/etc/config/uugamebooster $(INSTALL_BIN) $(CURDIR)/files/uugamebooster.init $(1)/etc/init.d/uugamebooster endef $(eval $(call BuildPackage,uugamebooster))