From 371ed13efd66cc4b38af59ae02eabfd909a5f468 Mon Sep 17 00:00:00 2001 From: cyrus Date: Mon, 11 Nov 2013 15:50:43 +0000 Subject: [PATCH] luavstruct: bump 1.1.4 git-svn-id: svn://svn.openwrt.org/openwrt/packages@38739 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- lang/luavstruct/Makefile | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 lang/luavstruct/Makefile diff --git a/lang/luavstruct/Makefile b/lang/luavstruct/Makefile new file mode 100644 index 000000000..f2ead479e --- /dev/null +++ b/lang/luavstruct/Makefile @@ -0,0 +1,54 @@ +# +# Copyright (C) 2013 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:=luavstruct +PKG_VERSION:=1.1.4 +PKG_RELEASE=1 + +PKG_SOURCE_URL:=https://github.com/ToxicFrog/vstruct.git +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_VERSION:=438d262bc5b88b69b4b076ce20d3fcfcbc97c0dc +PKG_SOURCE_PROTO:=git +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_MAINTAINER:=Steven Barth + + +include $(INCLUDE_DIR)/package.mk + +define Package/luavstruct + SUBMENU:=Lua + SECTION:=lang + CATEGORY:=Languages + TITLE:=luavstruct + URL:=https://github.com/ToxicFrog/vstruct + DEPENDS:=+lua +endef + +define Package/luavstruct/description +VStruct is a library for Lua 5.1. It provides functions for manipulating binary +data, in particular for unpacking binary files or byte buffers into Lua values +and for packing Lua values back into files or buffers. +endef + +define Build/Configure +endef + +define Build/Compile +endef + +define Package/luavstruct/install + $(INSTALL_DIR) $(1)/usr/lib/lua/vstruct + $(CP) $(PKG_BUILD_DIR)/vstruct/*.lua $(1)/usr/lib/lua/vstruct + $(INSTALL_DIR) $(1)/usr/lib/lua/vstruct/ast + $(CP) $(PKG_BUILD_DIR)/vstruct/ast/*.lua $(1)/usr/lib/lua/vstruct/ast + $(INSTALL_DIR) $(1)/usr/lib/lua/vstruct/io + $(CP) $(PKG_BUILD_DIR)/vstruct/io/*.lua $(1)/usr/lib/lua/vstruct/io +endef + +$(eval $(call BuildPackage,luavstruct)) -- 2.11.0