aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjasle <jasle@riseup.net>2024-01-14 17:38:14 +0100
committerDaniel Golle <daniel@makrotopia.org>2024-03-04 00:28:42 +0000
commit315b58a488e9347f756042ae88c7dfbc4d6442e6 (patch)
tree254ced5e8b33507657b2f4b2b412277b7664cc51 /lang
parent7b06b1d312ed3a43d2d030b55b6932a55365b5bd (diff)
lua-struct: add package
lua-struct is a implementation of binary packing/unpacking in pure lua. Resulting-package: * lua-struct Signed-off-by: jasle <jasle@riseup.net>
Diffstat (limited to 'lang')
-rw-r--r--lang/lua-struct/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/lang/lua-struct/Makefile b/lang/lua-struct/Makefile
new file mode 100644
index 000000000..f24131f9a
--- /dev/null
+++ b/lang/lua-struct/Makefile
@@ -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))
+