Makefile 1.2 KB

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