1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-13 10:59:13 +02:00
openwrt-packages/lang/lua-bencode/Makefile
Hannu Nyman 74e53c4842 lua-bencode: download .tar.gz instead of using hg
Avoid using 'hg' (Mercurial) to download sources.

'hg' is not an official prerequisite and it is not installed
in all buildslaves in Openwrt and LEDE buildbots, which
leads to frequent build failures.

Download the .tar.gz source archive instead.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-04-18 23:33:47 +03:00

50 lines
1.2 KiB
Makefile

#
# 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))