From 404601fb1e2834c66cff90b94a99b481f1ea5893 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Thu, 7 Oct 2021 15:59:35 -0400 Subject: [PATCH] Add .rockspec for 1.0-1 --- rockspec/qrprinter-1.0-1.rockspec | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 rockspec/qrprinter-1.0-1.rockspec diff --git a/rockspec/qrprinter-1.0-1.rockspec b/rockspec/qrprinter-1.0-1.rockspec new file mode 100644 index 0000000..030ee6d --- /dev/null +++ b/rockspec/qrprinter-1.0-1.rockspec @@ -0,0 +1,36 @@ +package = 'qrprinter' +version = '1.0-1' +supported_platforms = {'linux'} +source = { + url = "git+https://gitlab.com/jessieh/qrprinter", + tag = "1.0-1" +} +description = { + summary = "Encode and print strings as QR codes.", + detailed = "qrprinter wraps the libqrencode C library to provide an easy way of encoding and printing strings as QR codes from Lua.", + homepage = "https://gitlab.com/jessieh/qrprinter", + maintainer = "Jessie Hildebrandt ", + license = "GPLv3" +} +dependencies = { + "lua >= 5.1", +} +external_dependencies = { + LIBQRENCODE = { + header = "qrencode.h" + } +} +build = { + type = "make", + makefile = "Makefile", + build_variables = { + -- This suppresses luarocks' CFLAGS warning-- we don't actually use this + CFLAGS = "$(CFLAGS)" + }, + install = { + lua = { + ["qrprinter"] = "build/qrprinter.lua", + ["qrprinter.ffi.qrencode"] = "build/ffi/qrencode.lua" + } + } +}