mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 01:44:32 +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
42
lang/lua/lua-struct/Makefile
Normal file
42
lang/lua/lua-struct/Makefile
Normal file
@@ -0,0 +1,42 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=lua-struct
|
||||
PKG_VERSION:=0.9.2
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_VERSION_TAG:=$(PKG_VERSION)-1
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION_TAG).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/iryont/$(PKG_NAME)/tar.gz/$(PKG_VERSION_TAG)?
|
||||
PKG_HASH:=30d4e3584e27caa504745fdf5e191f2469ae284dc51271292654856905a4603d
|
||||
|
||||
PKG_MAINTAINER:=jasle <jasle@riseup.net>
|
||||
PKG_LICENSE:=MIT/X11
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION_TAG)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/lua-struct
|
||||
SUBMENU:=Lua
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=Implementation of binary packing/unpacking in pure lua
|
||||
URL:=https://github.com/iryont/lua-struct
|
||||
endef
|
||||
|
||||
define Package/lua-struct/desription
|
||||
lua-struct is a pure lua Implementation for packing and unpacking
|
||||
binary data.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
echo "Nothing to compile, pure lua package"
|
||||
endef
|
||||
|
||||
define Package/lua-struct/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/struct.lua $(1)/usr/lib/lua/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,lua-struct))
|
||||
|
||||
Reference in New Issue
Block a user