homebrew-core/Formula/dosfstools.rb

48 lines
2.4 KiB
Ruby

class Dosfstools < Formula
desc "Tools to create, check and label file systems of the FAT family"
homepage "https://github.com/dosfstools"
url "https://github.com/dosfstools/dosfstools/releases/download/v4.2/dosfstools-4.2.tar.gz"
sha256 "64926eebf90092dca21b14259a5301b7b98e7b1943e8a201c7d726084809b527"
license "GPL-3.0-or-later"
head "https://github.com/dosfstools/dosfstools.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "40a3ed816a04a4104a60aa95f8ae76bee9be12872e8147c0a41fa3f879f11ced"
sha256 cellar: :any_skip_relocation, arm64_monterey: "41e7da04f31a04e5ad7fc460b9c15b6526780fab0de0339fcdea540dfbaec964"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "3d8437b8921385c7675d2502c0c7b746f060e6b1656923e061173d568927f34d"
sha256 cellar: :any_skip_relocation, ventura: "134a64a971297ad37b2635532916116f6350c3771c03efa6ea3da259bb260ce1"
sha256 cellar: :any_skip_relocation, monterey: "e288a32bae22472eb31806afad3a025220d7284ddf6cdbf5b48a196ec5831139"
sha256 cellar: :any_skip_relocation, big_sur: "c4f450bef47449fa57d911e1c3610cd65bf8d7fd661e3efc8a0a44c7d45510f5"
sha256 cellar: :any_skip_relocation, catalina: "df9afee3d6ec3da028a6fdd487b98800099f8aa248261c35ed2821e984b91a70"
sha256 cellar: :any_skip_relocation, mojave: "4d910d3f83352692379e5ead97f3c52ab845cc187a1d791f655ed02ef7b7b9e6"
sha256 cellar: :any_skip_relocation, x86_64_linux: "584daa5a52ed21b3b23eba4323ebec3fa8421062c9cac5d833e60b91da0a7636"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "gettext" => :build
depends_on "pkg-config" => :build
# remove in next release
# https://github.com/dosfstools/dosfstools/pull/158
patch do
url "https://github.com/dosfstools/dosfstools/commit/8a917ed2afb2dd2a165a93812b6f52b9060eec5f.patch?full_index=1"
sha256 "73019e3f7852158bfe47a0105eb605b4df4a10ca50befc02adf50aed11bd4445"
end
def install
system "autoreconf", "-fiv"
system "./configure", "--prefix=#{prefix}",
"--without-udev",
"--enable-compat-symlinks"
system "make", "install"
end
test do
system "dd", "if=/dev/zero", "of=test.bin", "bs=512", "count=1024"
system "#{sbin}/mkfs.fat", "test.bin", "-n", "HOMEBREW", "-v"
system "#{sbin}/fatlabel", "test.bin"
system "#{sbin}/fsck.fat", "-v", "test.bin"
end
end