Merge pull request #2746 from diizzyy/patch-5
[feed/packages.git] / net / yaaw / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=yaaw
11 PKG_VERSION:=2016-05-28
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Hsing-Wang Liao <kuoruan@gmail.com>
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/binux/yaaw.git
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=c28cde2252b707fe0661693f78c5e5e3beee09a1
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
20
21 PKG_LICENSE:=LGPL-3.0
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/yaaw
26 SECTION:=net
27 CATEGORY:=Network
28 SUBMENU:=Download Manager
29 DEPENDS:=
30 TITLE:=Yet another aria2 web frontend
31 URL:=https://github.com/binux/yaaw
32 PKGARCH:=all
33 endef
34
35 define Package/yaaw/description
36 Yet Another Aria2 Web Frontend in pure HTML/CSS/Javascirpt.
37 endef
38
39 define Build/Compile
40 endef
41
42 define Package/yaaw/install
43 $(INSTALL_DIR) $(1)/www/yaaw
44 $(CP) $(PKG_BUILD_DIR)/js $(1)/www/yaaw
45 $(CP) $(PKG_BUILD_DIR)/img $(1)/www/yaaw
46 $(CP) $(PKG_BUILD_DIR)/css $(1)/www/yaaw
47 $(CP) $(PKG_BUILD_DIR)/index.html $(1)/www/yaaw
48 $(CP) $(PKG_BUILD_DIR)/offline.appcache $(1)/www/yaaw
49 endef
50
51 $(eval $(call BuildPackage,yaaw))