Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.gz
  12. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  13. PKG_SOURCE_URL:=https://bitbucket.org/wilhelmy/lua-bencode/downloads/
  14. PKG_HASH:=4624f33ff026bc62990a323ee4953e42d68430c38a1a4726c9cfd77c085b1422
  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. MAINTAINER:=Lars Gierth <larsg@systemli.org>
  24. DEPENDS:=+lua
  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))