44 lines
1.3 KiB
Ruby
44 lines
1.3 KiB
Ruby
class Qrencode < Formula
|
|
desc "QR Code generation"
|
|
homepage "https://fukuchi.org/works/qrencode/index.html.en"
|
|
url "https://fukuchi.org/works/qrencode/qrencode-4.1.1.tar.gz"
|
|
sha256 "da448ed4f52aba6bcb0cd48cac0dd51b8692bccc4cd127431402fca6f8171e8e"
|
|
license "LGPL-2.1-or-later"
|
|
|
|
livecheck do
|
|
url "https://fukuchi.org/works/qrencode/"
|
|
regex(/href=.*?qrencode[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "1b3d2022412f9d5486550fb68250aee25bb358a04e2cccc7bb85c7d65b1885b0" => :big_sur
|
|
sha256 "326d2f182c7c8d9188be7adda5bd0ecb5922269f60f72ac265e404fa17fb310f" => :catalina
|
|
sha256 "a8ec712f32c4d8b09d4c098c37264ea41f0f382525c5b67e657248fdd9f1f53d" => :mojave
|
|
sha256 "a6d123b7f88941fe9959970d8b6ccfbc426c2ec405cfc731bc259f2b0f536171" => :high_sierra
|
|
end
|
|
|
|
head do
|
|
url "https://github.com/fukuchi/libqrencode.git"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libpng"
|
|
|
|
def install
|
|
system "./autogen.sh" if build.head?
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/qrencode", "123456789", "-o", "test.png"
|
|
end
|
|
end
|