zlog: update to 1.2.17
[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.4.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/keplerproject/xavante/tar.gz/v$(PKG_VERSION)?
16 PKG_HASH:=0e4f49dd96cb092cd5d80cc66a5204dcb22a14f80897a121f2f0d1dceb1c7ba5
17 PKG_BUILD_DIR:=$(BUILD_DIR)/xavante-$(PKG_VERSION)
18
19 PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
20 PKG_LICENSE:=MIT
21
22 PKG_BUILD_PARALLEL:=1
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:=https://keplerproject.github.io/xavante/
33 DEPENDS:= +lua
34 PKGARCH:=all
35 endef
36
37 define Package/lua-xavante/description
38 Xavante is a Lua HTTP 1.1 Web server that uses a modular architecture based on URI mapped handlers.
39 endef
40
41
42 define Build/Configure
43 endef
44
45 define Build/Compile
46 endef
47
48 define Build/Install
49 endef
50
51 define Package/lua-xavante/install
52 $(INSTALL_DIR) $(1)/usr/lib/lua
53 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/sajax/sajax.lua $(1)/usr/lib/lua
54 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/xavante/xavante.lua $(1)/usr/lib/lua
55
56 $(INSTALL_DIR) $(1)/usr/lib/lua/xavante
57 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/xavante/{cgiluahandler,encoding,filehandler,httpd,mime,patternhandler,redirecthandler,vhostshandler,indexhandler,urlhandler,ruleshandler}.lua $(1)/usr/lib/lua/xavante
58 endef
59
60 $(eval $(call BuildPackage,lua-xavante))