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.
 
 
 
 
 
 

49 lines
1.2 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.1.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_URL:=https://bitbucket.org/wilhelmy/lua-bencode/downloads/
PKG_HASH:=4624f33ff026bc62990a323ee4953e42d68430c38a1a4726c9cfd77c085b1422
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))