homebrew-core/Formula/star.rb

44 lines
2.0 KiB
Ruby

class Star < Formula
desc "Standard tap archiver"
homepage "https://cdrtools.sourceforge.io/private/star.html"
url "https://downloads.sourceforge.net/project/s-tar/star-1.5.3.tar.bz2"
sha256 "070342833ea83104169bf956aa880bcd088e7af7f5b1f8e3d29853b49b1a4f5b"
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "1c741d208f7a080264af2c3431029d3473c6f3c9a3cead02f25a537ed41a7e40"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "0c002816e54a4bf9a821386bb231d34f9cc6ac9f9daf1f6d9241f79d9fc568c7"
sha256 cellar: :any_skip_relocation, monterey: "6e05507949b924107ed8cdec69938443580b072c41ceafb39a1819fe417a6154"
sha256 cellar: :any_skip_relocation, big_sur: "b35d569dd3653c0ea0d626206d2101e7de401f39c2e046e5c4553e3701fabb25"
sha256 cellar: :any_skip_relocation, catalina: "d97f6a6df5eaf3360e7b4c17a475e5417ce268815c01dfcbc94709377a47f6eb"
sha256 cellar: :any_skip_relocation, mojave: "8d1e4d304f4ac9c281f3b445f31a1268271eebba6a58f098b4f9339be51218b9"
sha256 cellar: :any_skip_relocation, high_sierra: "9f4a24f592647071a2ead26c2dba4d86cb664f71cdf4d280037a94748c92ec0c"
sha256 cellar: :any_skip_relocation, sierra: "ec7a276b68c0dc946d3320e3cd9cf923d0affdbfa72587ecccb2efa3dc7276cc"
sha256 cellar: :any_skip_relocation, el_capitan: "64288e33524b1d1afcc5ae7e6ff5dc1488f1793eba9452e54279054d55e93db3"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8afd0b94b5b4cf2580d5bb920ab19b351ab0ef870eb15b9f69f425ab68fff076"
end
depends_on "smake" => :build
def install
ENV.deparallelize # smake does not like -j
system "smake", "GMAKE_NOWARN=true", "INS_BASE=#{prefix}", "INS_RBASE=#{prefix}", "install"
# Remove symlinks that override built-in utilities
(bin+"gnutar").unlink
(bin+"tar").unlink
(man1+"gnutar.1").unlink
# Remove useless files
lib.rmtree
include.rmtree
# Remove conflicting files
%w[makefiles makerules].each { |f| (man5/"#{f}.5").unlink }
end
test do
system "#{bin}/star", "--version"
end
end