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.

48 lines
1.1 KiB

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