mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
lua: move Lua packages under lang/lua sub-folder
There are roughly 50 Lua packages. It's about time we consider a proposal for moving all of them under a lang/lua sub-folder. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
1545e6510f
commit
7eebedcdfc
97
lang/lua/lua-wsapi/Makefile
Normal file
97
lang/lua/lua-wsapi/Makefile
Normal file
@@ -0,0 +1,97 @@
|
||||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=lua-wsapi
|
||||
PKG_VERSION:=1.7
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/keplerproject/wsapi/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=48dc7aba0fd2e96a3e5ef51045b5d923964f6ae299de761aa0467031ad44e987
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/wsapi-$(PKG_VERSION)
|
||||
|
||||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/lua-wsapi/Default
|
||||
SUBMENU:=Lua
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=Lua WSAPI
|
||||
URL:=https://keplerproject.github.io/wsapi/
|
||||
DEPENDS:= +lua
|
||||
PKGARCH:=all
|
||||
endef
|
||||
|
||||
define Package/lua-wsapi/Default/description
|
||||
WSAPI is an API that abstracts the web server from Lua web applications
|
||||
endef
|
||||
|
||||
|
||||
define Package/lua-wsapi-base
|
||||
$(call Package/lua-wsapi/Default)
|
||||
TITLE+= base
|
||||
DEPENDS+= +luafilesystem
|
||||
VARIANT:=base
|
||||
endef
|
||||
|
||||
define Package/lua-wsapi-base/description
|
||||
$(call Package/lua-wsapi/Default/description)
|
||||
.
|
||||
This package contains the basic stuff.
|
||||
endef
|
||||
|
||||
define Package/lua-wsapi-xavante
|
||||
$(call Package/lua-wsapi/Default)
|
||||
TITLE+= xavante
|
||||
DEPENDS+= +lua-wsapi-base +lua-xavante
|
||||
VARIANT:=xavante
|
||||
endef
|
||||
|
||||
define Package/lua-wsapi-xavante/description
|
||||
$(call Package/lua-wsapi/Default/description)
|
||||
.
|
||||
This package contains the Xavante stuff.
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Build/Install
|
||||
endef
|
||||
|
||||
define Package/lua-wsapi-base/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/wsapi.lua $(1)/usr/lib/lua
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/launcher/wsapi.cgi $(1)/usr/bin
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua/wsapi
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/wsapi/{common,request,response,util,cgi,sapi,ringer,mock}.lua $(1)/usr/lib/lua/wsapi
|
||||
endef
|
||||
|
||||
define Package/lua-wsapi-xavante/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/launcher/wsapi $(1)/usr/bin
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua/wsapi
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/wsapi/xavante.lua $(1)/usr/lib/lua/wsapi
|
||||
endef
|
||||
|
||||
|
||||
$(eval $(call BuildPackage,lua-wsapi-base))
|
||||
$(eval $(call BuildPackage,lua-wsapi-xavante))
|
||||
Reference in New Issue
Block a user