Merge pull request #4898 from br101/horst
[feed/packages.git] / lang / lua-xavante / Makefile
1 #
2 # Copyright (C) 2015 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:=lua-xavante
11 PKG_VERSION:=2.3.0
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
14 PKG_LICENSE:=MIT
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_MIRROR_HASH:=0ab254d4bb8ce9556ad8fc2a1b4aef739ec3bb3e1f343400b20435e2ab8e686f
18 PKG_SOURCE_URL:=https://github.com/keplerproject/xavante.git
19 PKG_SOURCE_PROTO:=git
20 PKG_SOURCE_VERSION:=9825b905133e14d37a4c179f2d02367ab93f1ef6
21 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
22
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/lua-xavante
28 SUBMENU:=Lua
29 SECTION:=lang
30 CATEGORY:=Languages
31 TITLE:=Xavante Web Server
32 URL:=http://keplerproject.github.io/xavante/
33 DEPENDS:= +lua
34 endef
35
36 define Package/lua-xavante/description
37 Xavante is a Lua HTTP 1.1 Web server that uses a modular architecture based on URI mapped handlers.
38 endef
39
40
41 define Build/Configure
42 endef
43
44 define Build/Compile
45 endef
46
47 define Build/Install
48 endef
49
50 define Package/lua-xavante/install
51 $(INSTALL_DIR) $(1)/usr/lib/lua
52 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/sajax/sajax.lua $(1)/usr/lib/lua
53 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/xavante/xavante.lua $(1)/usr/lib/lua
54
55 $(INSTALL_DIR) $(1)/usr/lib/lua/xavante
56 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/xavante/{cgiluahandler,encoding,filehandler,httpd,mime,patternhandler,redirecthandler,vhostshandler,indexhandler,urlhandler,ruleshandler}.lua $(1)/usr/lib/lua/xavante
57 endef
58
59 $(eval $(call BuildPackage,lua-xavante))