2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Dirk Chang
<dirk@kooiot.com
>
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=https
://github.com
/LuaDist
/lzlib.git
19 PKG_SOURCE_VERSION
:=9fa3993bb4504fbbc10511cde141e1c6a48c072d
20 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/lua-lzlib
30 TITLE
:=Lua zlib binding
31 URL
:=http
://github.com
/LuaDist
/lzlib
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.
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
/
46 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/gzip.lua
$(1)/usr
/lib
/lua
/
49 $(eval
$(call BuildPackage
,lua-lzlib
))