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
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/lua-lzlib
28 TITLE
:=Lua zlib binding
29 URL
:=http
://github.com
/LuaDist
/lzlib
33 define Package
/lua-lzlib
/description
34 A library to access zlib library functions and also to read
/write gzip files using an interface similar to the base io package.
38 LUA
="$(STAGING_DIR)/usr" \
39 OFLAGS
="$(TARGET_CFLAGS)" \
41 define Package
/lua-lzlib
/install
42 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
43 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/zlib.so
$(1)/usr
/lib
/lua
/
45 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/gzip.lua
$(1)/usr
/lib
/lua
/
48 $(eval
$(call BuildPackage
,lua-lzlib
))