uugamebooster: cleanup makefile

This commit is contained in:
Beginner 2022-02-13 15:51:41 +08:00 committed by GitHub
parent a5d2dcab5a
commit b17a9e83ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,16 +17,16 @@ PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME) define Package/uugamebooster
SECTION:=net SECTION:=net
CATEGORY:=Network CATEGORY:=Network
DEPENDS:=@(aarch64||arm||mipsel||x86_64) +kmod-tun DEPENDS:=@(aarch64||arm||mipsel||x86_64) +kmod-tun
TITLE:=NetEase UU Game Booster TITLE:=NetEase UU Game Booster
URL:=https://uu.163.com URL:=https://uu.163.com
endef endef
define Package/$(PKG_NAME)/description define Package/uugamebooster/description
NetEase's UU Game Booster Accelerates Triple-A Gameplay and Market NetEase's UU Game Booster Accelerates Triple-A Gameplay and Market
endef endef
ifeq ($(ARCH),arm) ifeq ($(ARCH),arm)
@ -64,22 +64,22 @@ endef
define Build/Compile define Build/Compile
endef endef
define Package/$(PKG_NAME)/conffiles define Package/uugamebooster/conffiles
/root/.uuplugin_uuid /root/.uuplugin_uuid
endef endef
define Package/$(PKG_NAME)/install define Package/uugamebooster/install
# $(INSTALL_DIR) $(1)/etc/init.d # $(INSTALL_DIR) $(1)/etc/init.d
# $(INSTALL_BIN) ./files/uugamebooster.init $(1)/etc/init.d/uuplugin # $(INSTALL_BIN) ./files/uugamebooster.init $(1)/etc/init.d/uuplugin
$(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME) $(INSTALL_DIR) $(1)/usr/share/uugamebooster
$(INSTALL_BIN) $(UNTAR_DIR)/uuplugin $(1)/usr/share/$(PKG_NAME)/uuplugin $(INSTALL_BIN) $(UNTAR_DIR)/uuplugin $(1)/usr/share/uugamebooster/uuplugin
$(INSTALL_CONF) $(UNTAR_DIR)/uu.conf $(1)/usr/share/$(PKG_NAME)/uu.conf $(INSTALL_CONF) $(UNTAR_DIR)/uu.conf $(1)/usr/share/uugamebooster/uu.conf
# not finish yet: # not finish yet:
# $(INSTALL_DIR) $(1)/usr/bin # $(INSTALL_DIR) $(1)/usr/bin
# $(INSTALL_BIN) ./files/uugamebooster-update $(1)/usr/bin/$(PKG_NAME) # $(INSTALL_BIN) ./files/uugamebooster-update $(1)/usr/bin/uugamebooster
# $(LN) $(1)/usr/bin/$(PKG_NAME)/uugamebooster-update $(1)/usr/bin/uugamebooster-update # $(LN) $(1)/usr/bin/uugamebooster/uugamebooster-update $(1)/usr/bin/uugamebooster-update
endef endef
$(eval $(call BuildPackage,$(PKG_NAME))) $(eval $(call BuildPackage,uugamebooster))