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.

72 lines
1.8 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ariang
  3. PKG_VERSION:=1.2.2
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
  6. PKG_SOURCE_URL:=https://github.com/mayswind/AriaNg/releases/download/$(PKG_VERSION)
  7. PKG_HASH:=be5b050f5aaa10e27446c392f2e7d35b19908a591cd5ea3d2ab1228c7d350e3b
  8. UNPACK_CMD=unzip -q -d $(1) $(DL_DIR)/$(PKG_SOURCE)
  9. PKG_MAINTAINER:=Ansuel Smith <ansuelsmth@gmail.com>
  10. PKG_LICENSE:=MIT
  11. PKG_LICENSE_FILES:=LICENSE
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/ariang/default
  14. SECTION:=net
  15. CATEGORY:=Network
  16. SUBMENU:=Download Manager
  17. DEPENDS:=+aria2
  18. TITLE:=AriaNg webui
  19. URL:=https://ariang.mayswind.net
  20. PKGARCH:=all
  21. endef
  22. define Package/ariang/description
  23. AriaNg is a web frontend making aria2 easier to use. AriaNg is written in pure html & javascript, thus it does not need any compilers or runtime environment.
  24. endef
  25. Package/ariang-nginx/description = $(Package/ariang/description)
  26. define Package/ariang
  27. $(Package/ariang/default)
  28. DEPENDS += +uhttpd
  29. TITLE += for uhttpd webserver
  30. endef
  31. define Package/ariang-nginx
  32. $(Package/ariang/default)
  33. DEPENDS += +nginx
  34. TITLE += for nginx webserver
  35. endef
  36. define Build/Compile
  37. endef
  38. define Package/ariang/install
  39. $(INSTALL_DIR) \
  40. $(1)/www/ariang
  41. $(CP) \
  42. $(PKG_BUILD_DIR)/{langs,css,js,fonts} \
  43. $(PKG_BUILD_DIR)/index.html \
  44. $(PKG_BUILD_DIR)/index.manifest \
  45. $(PKG_BUILD_DIR)/LICENSE \
  46. $(PKG_BUILD_DIR)/{favicon.*,*.png} \
  47. $(PKG_BUILD_DIR)/robots.txt \
  48. $(1)/www/ariang
  49. endef
  50. define Package/ariang-nginx/install
  51. $(Package/ariang/install)
  52. $(INSTALL_DIR) $(1)/etc/nginx/conf.d/
  53. $(INSTALL_BIN) ./files/ariang.locations $(1)/etc/nginx/conf.d/
  54. $(INSTALL_DIR) $(1)/etc/uci-defaults
  55. $(INSTALL_BIN) ./files/80_ariang-nginx-support $(1)/etc/uci-defaults/80_ariang-nginx-support
  56. endef
  57. $(eval $(call BuildPackage,ariang))
  58. $(eval $(call BuildPackage,ariang-nginx))