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

  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. PKGARCH:=all
  25. endef
  26. define Package/lua-bencode/description
  27. This is a module for the lua programming language for decoding and encoding
  28. bencoded data which can be used to read and write torrent files for bittorrent.
  29. endef
  30. define Build/Configure
  31. endef
  32. define Build/Compile
  33. endef
  34. define Package/lua-bencode/install
  35. $(INSTALL_DIR) $(1)/usr/lib/lua
  36. $(INSTALL_DATA) $(PKG_BUILD_DIR)/bencode.lua $(1)/usr/lib/lua
  37. endef
  38. $(eval $(call BuildPackage,lua-bencode))