Browse Source

Merge pull request #16106 from rpoisel/dev-add-lua-curl-v3

Lua-cURLv3: add package
lilik-openwrt-22.03
Rosen Penev 3 years ago
committed by GitHub
parent
commit
a62ef72402
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 0 deletions
  1. +43
    -0
      lang/lua-curl-v3/Makefile

+ 43
- 0
lang/lua-curl-v3/Makefile View File

@ -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 <rainer.poisel@gmail.com>
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))

Loading…
Cancel
Save