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.

47 lines
1.2 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.6.0
  10. PKG_RELEASE:=1
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/Penlight-$(PKG_VERSION)
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://codeload.github.com/stevedonovan/Penlight/tar.gz/$(PKG_VERSION)?
  14. PKG_HASH:=a552d0a314f7aa94c9579746996a7aad4ed59f3187f33b4735d3e323e27354b0
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE.md
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/lua-penlight
  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@etactica.com>
  26. endef
  27. define Package/lua-penlight/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/lua-penlight/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,lua-penlight))