You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

  1. # SPDX-Identifier-License: GPL-3.0-or-later
  2. #
  3. # Copyright (C) 2019 Elon Huang <elonhhuang@gmail.com>
  4. # Copyright (C) 2021 ImmortalWrt.org
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=rclone-webui-react
  7. PKG_VERSION:=2.0.5
  8. PKG_RELEASE:=$(AUTORELEASE)
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
  10. PKG_SOURCE_URL:=https://github.com/rclone/rclone-webui-react/releases/download/v$(PKG_VERSION)/currentbuild.zip?
  11. PKG_HASH:=afd6836ecc5c5a1161e25cb0633c1167eb5933bb5069545680d69fcba635f011
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILE:=LICENSE
  14. PKG_MAINTAINER:=Elon Huang <elonhhuang@gmail.com> \
  15. Tianling Shen <cnsztl@immortalwrt.org>
  16. include $(INCLUDE_DIR)/package.mk
  17. UNZIP_CMD:=unzip -q -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE)
  18. define Package/rclone-webui-react
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=Cloud Manager
  22. TITLE:=A reactjs based web UI for rclone
  23. URL:=https://github.com/rclone/rclone-webui-react
  24. DEPENDS:=+rclone-config
  25. PKGARCH:=all
  26. endef
  27. define Package/rclone-webui-react/description
  28. A full fledged UI for the rclone cloud sync tool.
  29. endef
  30. define Build/Compile
  31. endef
  32. define Package/rclone-webui-react/install
  33. $(INSTALL_DIR) $(1)/www/rclone-webui-react
  34. $(CP) $(PKG_BUILD_DIR)/build/* $(1)/www/rclone-webui-react
  35. endef
  36. $(eval $(call BuildPackage,rclone-webui-react))