lua-bencode: import from https://github.com/SeattleMeshnet/meshbox.git
authorLars Gierth <larsg@systemli.org>
Sun, 31 Aug 2014 22:11:10 +0000 (00:11 +0200)
committerLars Gierth <larsg@systemli.org>
Tue, 2 Sep 2014 01:01:03 +0000 (03:01 +0200)
Signed-off-by: Lars Gierth <larsg@systemli.org>
lang/lua-bencode/Makefile [new file with mode: 0644]

diff --git a/lang/lua-bencode/Makefile b/lang/lua-bencode/Makefile
new file mode 100644 (file)
index 0000000..0b32056
--- /dev/null
@@ -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 <larsg@systemli.org>
+       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))