Fresh pull from upstream (stable) package feed
[librecmc/package-feed.git] / lang / lua-penlight / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lua-penlight
11 PKG_VERSION:=1.3.2
12 PKG_RELEASE:=2
13 PKG_BUILD_DIR:=$(BUILD_DIR)/Penlight-$(PKG_VERSION)
14 PKG_SOURCE:=$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://github.com/stevedonovan/Penlight/archive/
16 PKG_MD5SUM:=0315a39834bb6fab07741ec04ede1bf4
17 PKG_LICENSE:=MIT
18 PKG_LICENSE_FILES:=LICENSE.md
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/$(PKG_NAME)
23   SUBMENU:=Lua
24   SECTION:=lang
25   CATEGORY:=Languages
26   TITLE:=Penlight
27   URL:=http://stevedonovan.github.io/Penlight/api/manual/01-introduction.md.html
28   DEPENDS:=+luafilesystem
29   MAINTAINER:= Karl Palsson <karlp@remake.is>
30 endef
31
32 define Package/$(PKG_NAME)/description
33   It is often said of Lua that it does not include batteries.
34   Penlight is the batteries.
35 endef
36
37 define Build/Compile
38         echo "Nothing to compile, pure lua package"
39 endef
40
41 define Package/$(PKG_NAME)/install
42         $(INSTALL_DIR) $(1)/usr/lib/lua
43         $(CP) $(PKG_BUILD_DIR)/lua/pl $(1)/usr/lib/lua
44 endef
45
46 $(eval $(call BuildPackage,$(PKG_NAME)))