2019-08-05 18:53:26 +08:00
|
|
|
#
|
2020-02-18 12:36:51 +08:00
|
|
|
# Copyright (C) 2015-2020 OpenWrt.org
|
2019-08-05 18:53:26 +08:00
|
|
|
#
|
|
|
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
|
|
PKG_NAME:=UnblockNeteaseMusic
|
2020-05-20 09:59:50 +08:00
|
|
|
PKG_VERSION:=0.25.3
|
2020-04-26 16:09:40 +08:00
|
|
|
PKG_RELEASE:=4
|
2019-08-05 18:53:26 +08:00
|
|
|
|
|
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
|
|
2019-09-07 15:03:17 +08:00
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
|
PKG_SOURCE_URL:=https://github.com/nondanee/UnblockNeteaseMusic.git
|
2020-05-20 09:59:50 +08:00
|
|
|
PKG_SOURCE_VERSION:=610ff1716aa3698cd2e9391ff808a35a05719586
|
2019-09-07 15:03:17 +08:00
|
|
|
|
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
|
|
|
|
|
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR)-$(PKG_VERSION).tar.gz
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
|
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2019-08-05 18:53:26 +08:00
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)
|
2020-04-01 04:22:40 +08:00
|
|
|
SECTION:=multimedia
|
|
|
|
|
CATEGORY:=Multimedia
|
2020-03-06 16:22:36 +08:00
|
|
|
TITLE:=Revive Netease Cloud Music (NodeJS)
|
2020-03-06 16:28:51 +08:00
|
|
|
DEPENDS:=+node +libopenssl
|
2019-08-05 18:53:26 +08:00
|
|
|
URL:=https://github.com/nondanee/UnblockNeteaseMusic/releases
|
2019-10-24 14:36:03 +08:00
|
|
|
PKGARCH:=all
|
2019-08-05 18:53:26 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/description
|
2020-03-06 16:22:36 +08:00
|
|
|
Revive Netease Cloud Music (NodeJS)
|
2019-08-05 18:53:26 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
|
tar -xzvf $(DL_DIR)/$(PKG_SOURCE) -C $(PKG_BUILD_DIR)
|
2019-10-30 14:35:05 +08:00
|
|
|
mkdir -p $(PKG_BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
echo -e $(PKG_VERSION) > $(PKG_BUILD_DIR)/$(PKG_NAME)/core_ver
|
|
|
|
|
echo -e $(PKG_SOURCE_VERSION) > $(PKG_BUILD_DIR)/$(PKG_NAME)/local_ver
|
2019-08-05 18:53:26 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/install
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)
|
2019-09-07 15:03:17 +08:00
|
|
|
cp -pR $(PKG_BUILD_DIR)/$(PKG_NAME)/* $(1)/usr/share/$(PKG_NAME)
|
2019-08-05 18:53:26 +08:00
|
|
|
endef
|
|
|
|
|
|
2019-08-30 18:07:03 +08:00
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|