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.

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