2014-02-08 22:02:12 +00:00
|
|
|
class B43Fwcutter < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Extract firmware from Braodcom 43xx driver files"
|
2015-06-18 22:14:33 +00:00
|
|
|
homepage "https://wireless.kernel.org/en/users/Drivers/b43"
|
2016-04-17 19:36:54 +00:00
|
|
|
url "https://bues.ch/b43/fwcutter/b43-fwcutter-019.tar.bz2"
|
2015-06-18 22:14:33 +00:00
|
|
|
mirror "https://launchpad.net/ubuntu/+archive/primary/+files/b43-fwcutter_019.orig.tar.bz2"
|
|
|
|
sha256 "d6ea85310df6ae08e7f7e46d8b975e17fc867145ee249307413cfbe15d7121ce"
|
2014-02-08 22:02:12 +00:00
|
|
|
|
2015-06-18 23:08:57 +00:00
|
|
|
bottle do
|
2016-02-23 14:10:03 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "d24bbb9e1669ef33319b23a37a8ebd4dddaf8d1ce2c9e24abff13d678e3633d4" => :el_capitan
|
2015-06-18 23:08:57 +00:00
|
|
|
sha256 "fed62452f6d8b74976575b0b2fc3f5fac351981ac85768160bb188a6c55ff170" => :yosemite
|
|
|
|
sha256 "b2d662d6f951714738626f19698922875b4f97d149fbc8a79aeac0034f75d594" => :mavericks
|
|
|
|
sha256 "e423ba3a40a826611d5af02c7267b9d260219c1012add5291b3df09002abfa5f" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-02-08 22:02:12 +00:00
|
|
|
def install
|
2015-01-13 19:59:57 +00:00
|
|
|
inreplace "Makefile" do |m|
|
2014-02-08 22:02:12 +00:00
|
|
|
# Don't try to chown root:root on generated files
|
2015-01-13 19:59:57 +00:00
|
|
|
m.gsub! /install -o 0 -g 0/, "install"
|
|
|
|
m.gsub! /install -d -o 0 -g 0/, "install -d"
|
2014-02-08 22:02:12 +00:00
|
|
|
# Fix manpage installation directory
|
|
|
|
m.gsub! "$(PREFIX)/man", man
|
|
|
|
end
|
|
|
|
# b43-fwcutter has no ./configure
|
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/b43-fwcutter", "--version"
|
|
|
|
end
|
|
|
|
end
|