From 85882c69a9d4ed1e821634e1535157ed16c46ac6 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Wed, 6 Dec 2023 10:39:41 +0100 Subject: [PATCH] package/lua-conciseserialization: new package Signed-off-by: Francois Perrad Signed-off-by: Thomas Petazzoni --- package/Config.in | 1 + package/lua-conciseserialization/Config.in | 6 ++++++ .../lua-conciseserialization.hash | 4 ++++ .../lua-conciseserialization.mk | 18 ++++++++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 package/lua-conciseserialization/Config.in create mode 100644 package/lua-conciseserialization/lua-conciseserialization.hash create mode 100644 package/lua-conciseserialization/lua-conciseserialization.mk diff --git a/package/Config.in b/package/Config.in index 73d286a861..ae7c3e261a 100644 --- a/package/Config.in +++ b/package/Config.in @@ -728,6 +728,7 @@ menu "Lua libraries/modules" source "package/lua-coatpersistent/Config.in" source "package/lua-codegen/Config.in" source "package/lua-compat53/Config.in" + source "package/lua-conciseserialization/Config.in" source "package/lua-cqueues/Config.in" source "package/lua-csnappy/Config.in" source "package/lua-curl/Config.in" diff --git a/package/lua-conciseserialization/Config.in b/package/lua-conciseserialization/Config.in new file mode 100644 index 0000000000..b660147008 --- /dev/null +++ b/package/lua-conciseserialization/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_LUA_CONCISESERIALIZATION + bool "lua-conciseserialization" + help + a pure Lua implementation of CBOR / RFC8949. + + https://fperrad.frama.io/lua-ConciseSerialization/ diff --git a/package/lua-conciseserialization/lua-conciseserialization.hash b/package/lua-conciseserialization/lua-conciseserialization.hash new file mode 100644 index 0000000000..30ae4536f6 --- /dev/null +++ b/package/lua-conciseserialization/lua-conciseserialization.hash @@ -0,0 +1,4 @@ +# computed by luarocks/buildroot +sha256 1dd7a5bd17349ad78e93b36f05739e4323a8fda8cd66dee423bdd5a21a0c4453 lua-conciseserialization-0.2.4-1.src.rock +sha256 7988a3ab9ea3d8c536387c4e7931b1703fa02f7011771569ed56641fa1a0c78c lua-conciseserialization-lua53-0.2.4-1.src.rock +sha256 23ddf0d4a4dbc0667eeb919ceb7cc0a5b527af6cb51b286b78fa42f350de2130 lua-ConciseSerialization-0.2.4/COPYRIGHT diff --git a/package/lua-conciseserialization/lua-conciseserialization.mk b/package/lua-conciseserialization/lua-conciseserialization.mk new file mode 100644 index 0000000000..a777a4baea --- /dev/null +++ b/package/lua-conciseserialization/lua-conciseserialization.mk @@ -0,0 +1,18 @@ +################################################################################ +# +# lua-conciseserialization +# +################################################################################ + +LUA_CONCISESERIALIZATION_VERSION_UPSTREAM = 0.2.4 +LUA_CONCISESERIALIZATION_VERSION = $(LUA_CONCISESERIALIZATION_VERSION_UPSTREAM)-1 +ifeq ($(BR2_PACKAGE_LUA_5_3)$(BR2_PACKAGE_LUA_5_4),y) +LUA_CONCISESERIALIZATION_NAME_UPSTREAM = lua-ConciseSerialization-lua53 +else +LUA_CONCISESERIALIZATION_NAME_UPSTREAM = lua-ConciseSerialization +endif +LUA_CONCISESERIALIZATION_SUBDIR = lua-ConciseSerialization-$(LUA_CONCISESERIALIZATION_VERSION_UPSTREAM) +LUA_CONCISESERIALIZATION_LICENSE = MIT +LUA_CONCISESERIALIZATION_LICENSE_FILES = $(LUA_CONCISESERIALIZATION_SUBDIR)/COPYRIGHT + +$(eval $(luarocks-package))