From 28451eecefee7948a8a1e61d85c7386823a6c151 Mon Sep 17 00:00:00 2001 From: Rainer Poisel Date: Sat, 10 Jul 2021 23:53:41 +0200 Subject: [PATCH] Lua-cURLv3: add package Signed-off-by: Rainer Poisel --- lang/lua-curl-v3/Makefile | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 lang/lua-curl-v3/Makefile diff --git a/lang/lua-curl-v3/Makefile b/lang/lua-curl-v3/Makefile new file mode 100644 index 000000000..5855b61a4 --- /dev/null +++ b/lang/lua-curl-v3/Makefile @@ -0,0 +1,43 @@ +# +# Copyright (C) 2021 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=lua-curl-v3 +PKG_VERSION:=0.3.13-snapshot +PKG_RELEASE:=1 +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE + +PKG_SOURCE_URL:=https://github.com/Lua-cURL/Lua-cURLv3.git +PKG_MIRROR_HASH:=84a12b287cafc984df3e58b438b2b2d1092054e002144f225dee1c2efb18c8d3 +PKG_SOURCE_PROTO:=git +PKG_SOURCE_VERSION:=9f8b6dba8b5ef1b26309a571ae75cda4034279e5 + +include $(INCLUDE_DIR)/package.mk + +define Package/lua-curl-v3 + SUBMENU:=Lua + SECTION:=lang + CATEGORY:=Languages + TITLE:=Lua-curl + DEPENDS:=+libcurl +lua + MAINTAINER:=Rainer Poisel +endef + +define Package/lua-curl-v3/description + Lua bindings to libcurl (Lua-cURLv3) +endef + +define Package/lua-curl-v3/install + $(INSTALL_DIR) $(1)/usr/lib/lua + $(INSTALL_BIN) $(PKG_BUILD_DIR)/lcurl.so $(1)/usr/lib/lua + $(CP) $(PKG_BUILD_DIR)/src/lua/* $(1)/usr/lib/lua +endef + +$(eval $(call BuildPackage,lua-curl-v3)) +