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.2 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.1.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  13. PKG_SOURCE_URL:=https://bitbucket.org/wilhelmy/lua-bencode
  14. PKG_SOURCE_PROTO:=hg
  15. PKG_SOURCE_VERSION:=500243383cb6acbddd3cf12aee6e4667aab53324
  16. PKG_LICENSE:=MIT
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/lua-bencode
  19. SUBMENU:=Lua
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. TITLE:=lua-bencode
  23. URL:=https://bitbucket.org/wilhelmy/lua-bencode
  24. MAINTAINER:=Lars Gierth <larsg@systemli.org>
  25. DEPENDS:=+lua
  26. endef
  27. define Package/lua-bencode/description
  28. This is a module for the lua programming language for decoding and encoding
  29. bencoded data which can be used to read and write torrent files for bittorrent.
  30. endef
  31. define Build/Configure
  32. endef
  33. define Build/Compile
  34. endef
  35. define Package/lua-bencode/install
  36. $(INSTALL_DIR) $(1)/usr/lib/lua
  37. $(INSTALL_DATA) $(PKG_BUILD_DIR)/bencode.lua $(1)/usr/lib/lua
  38. endef
  39. $(eval $(call BuildPackage,lua-bencode))