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.7.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/Tieske/Penlight/tar.gz/$(PKG_VERSION)?
  14. PKG_HASH:=5b793fc93fa7227190e191e5b24a8f0ce9dd5958ccebe7a53842a58b5d46057f
  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://tieske.github.io/Penlight/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))