Skip to content

Commit

Permalink
fsarchiver 0.8.7 (new formula)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Linnane <patrick@linnane.io>
  • Loading branch information
phreed authored and p-linnane committed Oct 2, 2024
1 parent 9c8e06f commit c023452
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions Formula/f/fsarchiver.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
class Fsarchiver < Formula
desc "File system archiver for linux"
homepage "https://www.fsarchiver.org"
url "https://github.com/fdupoux/fsarchiver/releases/download/0.8.7/fsarchiver-0.8.7.tar.gz"
sha256 "f7cd059e70fc57e888db282c622ec050c0dcdbaacc65e3c1eb163cd9d92d810d"
license "GPL-2.0-only"

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "bzip2"
depends_on "e2fsprogs"
depends_on "libgcrypt"
depends_on :linux
depends_on "lz4"
depends_on "lzo"
depends_on "xz"
depends_on "zlib"
depends_on "zstd"

on_macos do
depends_on "gettext"
end

on_linux do
depends_on "util-linux"
end

def install
args = [
"--sysconfdir=#{etc}",
"--disable-e2initrd-helper",
"MKDIR_P=mkdir -p",
]
args += if OS.linux?
%w[
--enable-elf-shlibs
--disable-fsck
--disable-uuidd
--disable-libuuid
--disable-libblkid
--without-crond-dir
]
else
["--enable-bsd-shlibs"]
end

system "autoreconf", "--force", "--install", "--verbose"
system "./configure", *args, *std_configure_args

system "make"
system "make", "install"
end

test do

Check failure on line 56 in Formula/f/fsarchiver.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew test --verbose fsarchiver` failed on Linux!

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test.rb:52:in `<main>'
system bin/"fsarchiver", "usage"
end
end

0 comments on commit c023452

Please sign in to comment.