Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Homebrew Forumla for squashfs 4.3 with patch http://sourceforge.net/p/squashfs/patches/20/
require "formula"
class Squashfs < Formula
homepage "http://squashfs.sourceforge.net/"
url "https://downloads.sourceforge.net/project/squashfs/squashfs/squashfs4.3/squashfs4.3.tar.gz"
sha256 "0d605512437b1eb800b4736791559295ee5f60177e102e4d4ccd0ee241a5f3f6"
bottle do
cellar :any
sha1 "ea27e099828f9809190115e4eb874894d5234c9f" => :mavericks
sha1 "3947dd7376c576b743ec2c9508d2ec9f2f8dcde5" => :mountain_lion
sha1 "36eff8c566e09e78d5faae4558256317178f637d" => :lion
end
depends_on "lzo"
depends_on "xz"
# Patch necessary to emulate the sigtimedwait process otherwise we get build failures
# Also clang fixes, extra endianness knowledge and a bundle of other OS X fixes.
# Originally from https://github.com/plougher/squashfs-tools/pull/3
patch do
url "https://raw.githubusercontent.com/DomT4/scripts/master/Homebrew_Resources/Squashfs/squashfs.diff"
sha1 "bf8aad479180a0614b74d4aa2fb5b8a0c1dc567b"
end
patch do
url "https://sourceforge.net/p/squashfs/patches/_discuss/thread/fa70e074/d998/attachment/0001-unsquashfs-add-support-for-LZMA-magics.patch"
sha1 "17079eb7fc2959b22bc98d8358d184aafa53875e"
end
def install
cd "squashfs-tools" do
system "make XATTR_SUPPORT=0 EXTRA_CFLAGS=-std=gnu89 LZO_SUPPORT=1 LZO_DIR='#{HOMEBREW_PREFIX}' XZ_SUPPORT=1 XZ_DIR='#{HOMEBREW_PREFIX}' LZMA_XZ_SUPPORT=1"
bin.install %w{mksquashfs unsquashfs}
end
doc.install %w{ACKNOWLEDGEMENTS CHANGES COPYING INSTALL OLD-READMEs PERFORMANCE.README README README-4.3}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.