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.

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