From e3d52be323550a42ff73bff6b878dbb0934a748f Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 12 Jan 2023 20:25:49 +0100 Subject: [PATCH] New package: lua54-luasocket-3.1.0 This is derived from lua51-luasocket but without the transitional package luasocket, and from the new upstream (hence the different version). This version is required to update the prosody package to use lua54 instead of the now-deprecated lua51. --- srcpkgs/lua54-luasocket/template | 25 +++++++++++++++++++++++++ srcpkgs/lua54-luasocket/update | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 srcpkgs/lua54-luasocket/template create mode 100644 srcpkgs/lua54-luasocket/update diff --git a/srcpkgs/lua54-luasocket/template b/srcpkgs/lua54-luasocket/template new file mode 100644 index 000000000000..57193948c4e4 --- /dev/null +++ b/srcpkgs/lua54-luasocket/template @@ -0,0 +1,25 @@ +# Template file for 'lua54-luasocket' +pkgname=lua54-luasocket +version=3.1.0 +revision=1 +build_style=gnu-makefile +makedepends="lua54-devel" +depends="lua54" +short_desc="Network support for the Lua language" +maintainer="Orphaned " +license="MIT" +homepage="https://lunarmodules.github.io/luasocket/" +distfiles="https://github.com/lunarmodules/luasocket/archive/v${version}/luasocket-${version}.tar.gz" +checksum=bf033aeb9e62bcaa8d007df68c119c966418e8c9ef7e4f2d7e96bddeca9cca6e + +do_build() { + make CC=$CC LD=$CC LUAV=5.4 LUAINC=${XBPS_CROSS_BASE}/usr/include/lua5.4/ ${makejobs} +} + +do_install() { + make LUAV=5.4 prefix=/usr DESTDIR=${DESTDIR} ${makejobs} install +} + +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/lua54-luasocket/update b/srcpkgs/lua54-luasocket/update new file mode 100644 index 000000000000..51dbff23e507 --- /dev/null +++ b/srcpkgs/lua54-luasocket/update @@ -0,0 +1,3 @@ +site="https://github.com/diegonehab/luasocket/tags" +pattern='archive/v\K[\d\w-.]+(?=\.tar\.gz)' +ignore="*rc*"