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.

46 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2021 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-curl-v3
  9. PKG_VERSION:=0.3.13-snapshot
  10. PKG_RELEASE:=2
  11. PKG_LICENSE:=MIT
  12. PKG_LICENSE_FILES:=LICENSE
  13. PKG_SOURCE_URL:=https://github.com/Lua-cURL/Lua-cURLv3.git
  14. PKG_MIRROR_HASH:=84a12b287cafc984df3e58b438b2b2d1092054e002144f225dee1c2efb18c8d3
  15. PKG_SOURCE_PROTO:=git
  16. PKG_SOURCE_VERSION:=9f8b6dba8b5ef1b26309a571ae75cda4034279e5
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/lua-curl-v3
  19. SUBMENU:=Lua
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. TITLE:=Lua-curl
  23. DEPENDS:=+libcurl +lua
  24. MAINTAINER:=Rainer Poisel <rainer.poisel@gmail.com>
  25. endef
  26. MAKE_FLAGS += \
  27. UNAME="Linux"
  28. define Package/lua-curl-v3/description
  29. Lua bindings to libcurl (Lua-cURLv3)
  30. endef
  31. define Package/lua-curl-v3/install
  32. $(INSTALL_DIR) $(1)/usr/lib/lua
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/lcurl.so $(1)/usr/lib/lua
  34. $(CP) $(PKG_BUILD_DIR)/src/lua/* $(1)/usr/lib/lua
  35. endef
  36. $(eval $(call BuildPackage,lua-curl-v3))