noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[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.3
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:=79329a07d8f79c19eadd7ea2752b4c4e1574b015
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/lua-lzlib
25 SUBMENU:=Lua
26 SECTION:=lang
27 CATEGORY:=Languages
28 TITLE:=Lua zlib binding
29 URL:=http://github.com/LuaDist/lzlib
30 DEPENDS:= +lua +zlib
31 endef
32
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.
35 endef
36
37 MAKE_FLAGS += \
38 LUA="$(STAGING_DIR)/usr" \
39 OFLAGS="$(TARGET_CFLAGS)" \
40
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/
44
45 $(INSTALL_DATA) $(PKG_BUILD_DIR)/gzip.lua $(1)/usr/lib/lua/
46 endef
47
48 $(eval $(call BuildPackage,lua-lzlib))