From 77c074db39a20ae05d6b6bb0f1abb3053a443cb2 Mon Sep 17 00:00:00 2001 From: Lars Gierth Date: Mon, 1 Sep 2014 00:11:10 +0200 Subject: [PATCH] lua-bencode: import from https://github.com/SeattleMeshnet/meshbox.git Signed-off-by: Lars Gierth --- lang/lua-bencode/Makefile | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 lang/lua-bencode/Makefile diff --git a/lang/lua-bencode/Makefile b/lang/lua-bencode/Makefile new file mode 100644 index 000000000..0b3205608 --- /dev/null +++ b/lang/lua-bencode/Makefile @@ -0,0 +1,50 @@ +# +# Copyright (C) 20013-2014 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:=lua-bencode +PKG_VERSION:=2.1.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_URL:=https://bitbucket.org/wilhelmy/lua-bencode +PKG_SOURCE_PROTO:=hg +PKG_SOURCE_VERSION:=500243383cb6acbddd3cf12aee6e4667aab53324 +PKG_LICENSE:=MIT + +include $(INCLUDE_DIR)/package.mk + +define Package/lua-bencode + SUBMENU:=Lua + SECTION:=lang + CATEGORY:=Languages + TITLE:=lua-bencode + URL:=https://bitbucket.org/wilhelmy/lua-bencode + MAINTAINER:=Lars Gierth + DEPENDS:=+lua +endef + +define Package/lua-bencode/description + This is a module for the lua programming language for decoding and encoding + bencoded data which can be used to read and write torrent files for bittorrent. +endef + +define Build/Configure +endef + +define Build/Compile +endef + + +define Package/lua-bencode/install + $(INSTALL_DIR) $(1)/usr/lib/lua + $(INSTALL_DATA) $(PKG_BUILD_DIR)/bencode.lua $(1)/usr/lib/lua +endef + +$(eval $(call BuildPackage,lua-bencode))