Merge pull request #1199 from kooiot/master
[feed/packages.git] / lang / lua-lzlib / Makefile
1 #
2 # Copyright (C) 2015 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-lzlib
11 PKG_VERSION:=0.4.1
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
14 PKG_LICENSE:=MIT
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=https://github.com/LuaDist/lzlib.git
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_VERSION:=9fa3993bb4504fbbc10511cde141e1c6a48c072d
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/lua-lzlib
27 SUBMENU:=Lua
28 SECTION:=lang
29 CATEGORY:=Languages
30 TITLE:=Lua zlib binding
31 URL:=http://github.com/LuaDist/lzlib
32 DEPENDS:= +lua +zlib
33 endef
34
35 define Package/lua-lzlib/description
36 A library to access zlib library functions and also to read/write gzip files using an interface similar to the base io package.
37 endef
38
39 define Build/Install
40 endef
41
42 define Package/lua-lzlib/install
43 $(INSTALL_DIR) $(1)/usr/lib/lua
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/zlib.so $(1)/usr/lib/lua/
45
46 $(INSTALL_DATA) $(PKG_BUILD_DIR)/gzip.lua $(1)/usr/lib/lua/
47 endef
48
49 $(eval $(call BuildPackage,lua-lzlib))