aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/clamav.rb
blob: 58491cfdc04177aa45dd79c37c1f54b5e1b1ecb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require "formula"

class Clamav < Formula
  homepage "http://www.clamav.net/"
  url "https://downloads.sourceforge.net/clamav/clamav-0.98.3.tar.gz"
  sha1 "32f0a0675f8023b20e1d19fe8592e330674d0551"

  head "https://github.com/vrtadmin/clamav-devel"

  skip_clean "share"

  def install
    (share/"clamav").mkpath
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--libdir=#{lib}",
                          "--sysconfdir=#{etc}",
                          "--disable-zlib-vcheck",
                          "--with-zlib=#{MacOS.sdk_path}/usr"
    system "make", "install"
  end
end