You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
1.1 KiB

#
# 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.2.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://bitbucket.org/wilhelmy/lua-bencode/downloads/
PKG_HASH:=25830ff3fe342c09c65995d46c4d89ad0387cc502b1a2f70f9cca2d8c7ccafdd
PKG_MAINTAINER:=Lars Gierth <larsg@systemli.org>
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
DEPENDS:=+lua
PKGARCH:=all
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))