From: Steven Barth Date: Mon, 11 Nov 2013 15:50:43 +0000 (+0000) Subject: luavstruct: bump 1.1.4 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=62853598b1c939d96a04f7469d2d82a696b3bfb4;p=openwrt%2Fsvn-archive%2Farchive.git luavstruct: bump 1.1.4 SVN-Revision: 38739 --- diff --git a/lang/luavstruct/Makefile b/lang/luavstruct/Makefile new file mode 100644 index 0000000000..f2ead479e4 --- /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))