mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08: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
@@ -0,0 +1,47 @@
|
||||
#
|
||||
# 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:=lpeg
|
||||
PKG_VERSION:=1.0.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://www.inf.puc-rio.br/~roberto/lpeg/
|
||||
PKG_HASH:=48d66576051b6c78388faad09b70493093264588fcd0f258ddaab1cdd4a15ffe
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/lpeg
|
||||
SUBMENU:=Lua
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=LPeg
|
||||
URL:=http://www.inf.puc-rio.br/~roberto/lpeg/
|
||||
DEPENDS:=+lua
|
||||
endef
|
||||
|
||||
define Package/lpeg/description
|
||||
LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs)
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
# add make variable overrides here
|
||||
MAKE_FLAGS += \
|
||||
COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -O2"
|
||||
|
||||
define Package/lpeg/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lpeg.so $(1)/usr/lib/lua
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,lpeg))
|
||||
Reference in New Issue
Block a user