From f1bb1941e10645bf23e6c95349d73243d15f9cb3 Mon Sep 17 00:00:00 2001 From: Jeremy Mawson Date: Thu, 25 Apr 2024 19:45:58 +1000 Subject: [PATCH] +qrencode --- qrencode.hcl | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 qrencode.hcl diff --git a/qrencode.hcl b/qrencode.hcl new file mode 100644 index 00000000..01363d5a --- /dev/null +++ b/qrencode.hcl @@ -0,0 +1,29 @@ +description = "a fast and compact library for encoding data in a QR Code symbol" +binaries = ["qrencode"] +test = "qrencode --version" + +platform "darwin" { + source ="https://github.com/cashapp/hermit-build/releases/download/qrencode-${version}/qrencode-${version}-darwin-amd64.tar.xz" +} + +platform "linux" { + source = "https://github.com/cashapp/hermit-build/releases/download/qrencode-${version}/qrencode-${version}-linux-amd64.tar.xz" +} + +on "unpack" { + rename { + from = "${root}/qrencode-${version}" + to = "${root}/qrencode" + } + chmod { + file = "${root}/qrencode" + mode = 448 + } +} + +version "4.1.1" {} + +sha256sums = { + "https://github.com/cashapp/hermit-build/releases/download/qrencode-4.1.1/qrencode-4.1.1-darwin-amd64.tar.xz": "6e7b26658e0386f3252b7a0374bd326f2775ed36194583c1783a4512cb38fb1b", + "https://github.com/cashapp/hermit-build/releases/download/qrencode-4.1.1/qrencode-4.1.1-linux-amd64.tar.xz": "5adfa27330afc424faed4af8ef3f95792eb7812f2ac801b3f784bd0725f91315", +}