luavstruct: bump 1.1.4

git-svn-id: svn://svn.openwrt.org/openwrt/packages@38739 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
cyrus 2013-11-11 15:50:43 +00:00
parent 267f99adfd
commit 371ed13efd

54
lang/luavstruct/Makefile Normal file
View File

@ -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 <steven@midlink.org>
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))