rclone-ng: initial package
authorElon Huang <elonh@immortalwrt.org>
Sun, 10 Oct 2021 06:42:16 +0000 (14:42 +0800)
committerRosen Penev <rosenp@gmail.com>
Fri, 15 Oct 2021 05:25:04 +0000 (22:25 -0700)
Signed-off-by: Elon Huang <elonh@immortalwrt.org>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
net/rclone-ng/Makefile [new file with mode: 0644]

diff --git a/net/rclone-ng/Makefile b/net/rclone-ng/Makefile
new file mode 100644 (file)
index 0000000..184fbf4
--- /dev/null
@@ -0,0 +1,43 @@
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# Copyright (C) 2020 Elon Huang <elonhhuang@gmail.com>
+# Copyright (C) 2021 ImmortalWrt.org
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=rclone-ng
+PKG_VERSION:=0.5.0
+PKG_RELEASE:=$(AUTORELEASE)
+
+PKG_SOURCE:=RcloneNg-v$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/ElonH/RcloneNg/releases/download/v$(PKG_VERSION)/
+PKG_HASH:=0b4916ddd0bacb5b358dc8d36b64c30f4182c0ace3eb06cda94b6578c419dcd9
+
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILE:=LICENSE
+PKG_MAINTAINER:=Elon Huang <elonhhuang@gmail.com> \
+               Tianling Shen <cnsztl@immortalwrt.org>
+
+include $(INCLUDE_DIR)/package.mk
+
+TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
+
+define Package/rclone-ng
+  SECTION:=net
+  CATEGORY:=Network
+  SUBMENU:=Cloud Manager
+  TITLE:=An angular web application for rclone
+  URL:=https://github.com/ElonH/RcloneNg
+  DEPENDS:=+rclone-config
+  PKGARCH:=all
+endef
+
+define Build/Compile
+endef
+
+define Package/rclone-ng/install
+       $(INSTALL_DIR) $(1)/www
+       $(CP) $(PKG_BUILD_DIR)/RcloneNg $(1)/www
+endef
+
+$(eval $(call BuildPackage,rclone-ng))