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.1 KiB

  1. #
  2. # Copyright (C) 20013-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=lua-bencode
  9. PKG_VERSION:=2.2.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://bitbucket.org/wilhelmy/lua-bencode/downloads/
  13. PKG_HASH:=25830ff3fe342c09c65995d46c4d89ad0387cc502b1a2f70f9cca2d8c7ccafdd
  14. PKG_MAINTAINER:=Lars Gierth <larsg@systemli.org>
  15. PKG_LICENSE:=MIT
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/lua-bencode
  18. SUBMENU:=Lua
  19. SECTION:=lang
  20. CATEGORY:=Languages
  21. TITLE:=lua-bencode
  22. URL:=https://bitbucket.org/wilhelmy/lua-bencode
  23. DEPENDS:=+lua
  24. endef
  25. define Package/lua-bencode/description
  26. This is a module for the lua programming language for decoding and encoding
  27. bencoded data which can be used to read and write torrent files for bittorrent.
  28. endef
  29. define Build/Configure
  30. endef
  31. define Build/Compile
  32. endef
  33. define Package/lua-bencode/install
  34. $(INSTALL_DIR) $(1)/usr/lib/lua
  35. $(INSTALL_DATA) $(PKG_BUILD_DIR)/bencode.lua $(1)/usr/lib/lua
  36. endef
  37. $(eval $(call BuildPackage,lua-bencode))