Merge pull request #4853 from StevenHessing/noddos
[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_MIRROR_HASH:=b6ef5e3f04b7f2137b39931a175ee802489a2486e70537770919bcccca10e723
18 PKG_SOURCE_URL:=https://github.com/LuaDist/lzlib.git
19 PKG_SOURCE_PROTO:=git
20 PKG_SOURCE_VERSION:=79329a07d8f79c19eadd7ea2752b4c4e1574b015
21 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/lua-lzlib
26 SUBMENU:=Lua
27 SECTION:=lang
28 CATEGORY:=Languages
29 TITLE:=Lua zlib binding
30 URL:=http://github.com/LuaDist/lzlib
31 DEPENDS:= +lua +zlib
32 endef
33
34 define Package/lua-lzlib/description
35 A library to access zlib library functions and also to read/write gzip files using an interface similar to the base io package.
36 endef
37
38 MAKE_FLAGS += \
39 LUA="$(STAGING_DIR)/usr" \
40 OFLAGS="$(TARGET_CFLAGS)" \
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))