You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=lua-lzlib
  9. PKG_VERSION:=0.4.3
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
  12. PKG_LICENSE:=MIT
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_MIRROR_HASH:=b6ef5e3f04b7f2137b39931a175ee802489a2486e70537770919bcccca10e723
  15. PKG_SOURCE_URL:=https://github.com/LuaDist/lzlib.git
  16. PKG_SOURCE_PROTO:=git
  17. PKG_SOURCE_VERSION:=79329a07d8f79c19eadd7ea2752b4c4e1574b015
  18. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/lua-lzlib
  21. SUBMENU:=Lua
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=Lua zlib binding
  25. URL:=http://github.com/LuaDist/lzlib
  26. DEPENDS:= +lua +zlib
  27. endef
  28. define Package/lua-lzlib/description
  29. A library to access zlib library functions and also to read/write gzip files using an interface similar to the base io package.
  30. endef
  31. MAKE_FLAGS += \
  32. LUA="$(STAGING_DIR)/usr" \
  33. OFLAGS="$(TARGET_CFLAGS)" \
  34. define Package/lua-lzlib/install
  35. $(INSTALL_DIR) $(1)/usr/lib/lua
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/zlib.so $(1)/usr/lib/lua/
  37. $(INSTALL_DATA) $(PKG_BUILD_DIR)/gzip.lua $(1)/usr/lib/lua/
  38. endef
  39. $(eval $(call BuildPackage,lua-lzlib))