homebrew-core/Formula/pcsc-lite.rb
2017-01-09 03:00:48 -08:00

28 lines
1 KiB
Ruby

class PcscLite < Formula
desc "Middleware to access a smart card using SCard API"
homepage "https://pcsclite.alioth.debian.org"
url "https://alioth.debian.org/frs/download.php/file/4203/pcsc-lite-1.8.20.tar.bz2"
sha256 "ec7d0114016c788c1c09859c84860f6cec6c4595436d23245105154b9c046bb2"
bottle do
sha256 "0cf13c92847d79113c18046de5bba33e154c89b3d5ddb2eb8a1510a740e3a2ab" => :sierra
sha256 "4dae204aa9af497a06a6cbd102f892ba6d41e3c8da2480ea1b057aa9fb7d1aad" => :el_capitan
sha256 "8369d8cf480a4c86005c5522fdeb30dc40c09331e674c5eaa03b42823cd6f2e7" => :yosemite
end
keg_only :provided_by_osx,
"pcsc-lite interferes with detection of macOS's PCSC.framework."
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}",
"--with-systemdsystemunitdir=no"
system "make", "install"
end
test do
system sbin/"pcscd", "--version"
end
end