1
0

Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Copyright (C) 2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=yaaw
  9. PKG_VERSION:=2016-05-28
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Hsing-Wang Liao <kuoruan@gmail.com>
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/binux/yaaw.git
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=c28cde2252b707fe0661693f78c5e5e3beee09a1
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  17. PKG_LICENSE:=LGPL-3.0
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/yaaw
  20. SECTION:=net
  21. CATEGORY:=Network
  22. SUBMENU:=Download Manager
  23. DEPENDS:=
  24. TITLE:=Yet another aria2 web frontend
  25. URL:=https://github.com/binux/yaaw
  26. PKGARCH:=all
  27. endef
  28. define Package/yaaw/description
  29. Yet Another Aria2 Web Frontend in pure HTML/CSS/Javascirpt.
  30. endef
  31. define Build/Compile
  32. endef
  33. define Package/yaaw/install
  34. $(INSTALL_DIR) $(1)/www/yaaw
  35. $(CP) $(PKG_BUILD_DIR)/js $(1)/www/yaaw
  36. $(CP) $(PKG_BUILD_DIR)/img $(1)/www/yaaw
  37. $(CP) $(PKG_BUILD_DIR)/css $(1)/www/yaaw
  38. $(CP) $(PKG_BUILD_DIR)/index.html $(1)/www/yaaw
  39. $(CP) $(PKG_BUILD_DIR)/offline.appcache $(1)/www/yaaw
  40. endef
  41. $(eval $(call BuildPackage,yaaw))