Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Copyright (C) 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-penlight
  9. PKG_VERSION:=1.3.2
  10. PKG_RELEASE:=2
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/Penlight-$(PKG_VERSION)
  12. PKG_SOURCE:=$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://github.com/stevedonovan/Penlight/archive/
  14. PKG_MD5SUM:=0315a39834bb6fab07741ec04ede1bf4
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE.md
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/$(PKG_NAME)
  19. SUBMENU:=Lua
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. TITLE:=Penlight
  23. URL:=http://stevedonovan.github.io/Penlight/api/manual/01-introduction.md.html
  24. DEPENDS:=+luafilesystem
  25. MAINTAINER:= Karl Palsson <karlp@remake.is>
  26. endef
  27. define Package/$(PKG_NAME)/description
  28. It is often said of Lua that it does not include batteries.
  29. Penlight is the batteries.
  30. endef
  31. define Build/Compile
  32. echo "Nothing to compile, pure lua package"
  33. endef
  34. define Package/$(PKG_NAME)/install
  35. $(INSTALL_DIR) $(1)/usr/lib/lua
  36. $(CP) $(PKG_BUILD_DIR)/lua/pl $(1)/usr/lib/lua
  37. endef
  38. $(eval $(call BuildPackage,$(PKG_NAME)))