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.

46 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.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/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@remake.is>
  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))