kenzok8-package/sub-web/Makefile

49 lines
1.1 KiB
Makefile
Raw Normal View History

2023-01-28 01:28:48 +08:00
include $(TOPDIR)/rules.mk
PKG_NAME:=sub-web
2023-02-27 23:38:23 +08:00
PKG_RELEASE:=1
2023-01-28 01:28:48 +08:00
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/CareyWang/sub-web.git
PKG_SOURCE_DATE:=2022-11-10
PKG_SOURCE_VERSION:=71e53414a89b5fd5ec0ef453e32202194993d0cf
2024-04-10 16:23:42 +08:00
PKG_MIRROR_HASH:=03c5d122e458dbe30a6d39b391aaf06b9654bd77c0efb1840dafae53cb45f75d
2023-01-28 01:28:48 +08:00
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
PKG_BUILD_DEPENDS:=node/host node-yarn/host
include $(INCLUDE_DIR)/package.mk
define Package/sub-web
SECTION:=net
CATEGORY:=Network
URL:=https://github.com/CareyWang/sub-web
TITLE:=A WebUI for generating proxy subscription url
DEPENDS:=+subconverter
PKGARCH:=all
endef
define Package/sub-web/description
Based on vue-cli and subconverter, for generating proxy subscription
url automatically.
endef
define Build/Compile
( \
pushd "$(PKG_BUILD_DIR)"; \
yarn install; \
2023-02-27 23:38:23 +08:00
NODE_OPTIONS=--openssl-legacy-provider yarn build; \
2023-01-28 01:28:48 +08:00
popd ; \
)
endef
define Package/sub-web/install
$(INSTALL_DIR) $(1)/www/sub-web
$(CP) $(PKG_BUILD_DIR)/dist/* $(1)/www/sub-web/
endef
$(eval $(call BuildPackage,sub-web))