Viewing is open to everyone. Downloading and starring need a GitHub sign-in. Sign in with GitHub

ckey.rb.in

v0.1.0-build.85 Latest Commit ede38f5

Size
1.0 KB
Lines
26
Language
plaintext
SHA-256
0df29b0e5c61…
View on GitHub

Sign in with GitHub to download. Each download is recorded with your GitHub username.

1# Homebrew formula for the CKey command-line tool (spec §7: Homebrew is for
2# tooling, not a substitute for the Swift package). Generated per release by
3# tools/release/make_homebrew_formula.py from the tagged source archive;
4# publish it in a tap (e.g. clearkeysolutions/homebrew-tap).
5class Ckey < Formula
6 desc "Encode, render, print and verify CKey optical codes"
7 homepage "https://github.com/clearkeysolutions/ckey"
8 url "https://github.com/clearkeysolutions/ckey/archive/refs/tags/@TAG@.tar.gz"
9 sha256 "@SHA256@"
10 version "@VERSION@"
11 license "MIT"
12 head "https://github.com/clearkeysolutions/ckey.git", branch: "Stable-Release"
13
14 depends_on "cmake" => :build
15
16 def install
17 system "cmake", "-S", ".", "-B", "build", "-DCKEY_BUILD_TESTS=OFF", *std_cmake_args
18 system "cmake", "--build", "build"
19 system "cmake", "--install", "build"
20 end
21
22 test do
23 system bin/"ckey", "encode-scalable", "--utf8", "https://openckey.org", "--raster", "t.png", "--size-px", "128"
24 assert_predicate testpath/"t.png", :exist?
25 end
26end