homebrew-core/Formula/mpgtx.rb

42 lines
2.3 KiB
Ruby

class Mpgtx < Formula
desc "Toolbox to manipulate MPEG files"
homepage "https://mpgtx.sourceforge.io/"
url "https://downloads.sourceforge.net/project/mpgtx/mpgtx/1.3.1/mpgtx-1.3.1.tar.gz"
sha256 "8815e73e98b862f12ba1ef5eaaf49407cf211c1f668c5ee325bf04af27f8e377"
license "GPL-2.0"
livecheck do
url :stable
regex(%r{url=.*?/mpgtx[._-]v?(\d+(?:\.\d+)+(?:-\d+)?)(?:-src)?\.t}i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "b9086ca4f3b6b2448255352f89972039b6695fead5f4a3f7c310b0c27fb6ad9e"
sha256 cellar: :any_skip_relocation, arm64_monterey: "09eb55b5471006050d5a0d02a756c8474d2500ce289ebe8dfbe22a95cfbebc14"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "ffab63d205a5b151099b5034943d1b34ef5802a4068c832c3da376f67b540745"
sha256 cellar: :any_skip_relocation, ventura: "50b17722b66bcdb43ba33472f34955e71625817238660626be12a2407ba0c9ae"
sha256 cellar: :any_skip_relocation, monterey: "d74d7e1c7a278e72e9b98afed71f019b51000784bd385450f88a4d879d1fff7d"
sha256 cellar: :any_skip_relocation, big_sur: "ee222d4e5a24b91c13ae86e2e66291adc636d859f4b4c9cd7ba0944ffb629278"
sha256 cellar: :any_skip_relocation, catalina: "116812d4c0401a6ceeae3bd8bd0bc3f4870c0cac7f9ec166ceb97f5279c10d32"
sha256 cellar: :any_skip_relocation, mojave: "40240b442f8d3c41f89a38da8055cbf30fc10a4ea8b4dd469903d19c424851ce"
sha256 cellar: :any_skip_relocation, high_sierra: "6a003e12c03f1cc24bd520e1cf153da02729b4d30e7bdffcba5cecf832c19238"
sha256 cellar: :any_skip_relocation, sierra: "70e1dfed0338fb8b8cda36ca05e05b8cd3fd456782db58408b18bbf2361f09aa"
sha256 cellar: :any_skip_relocation, el_capitan: "566ce06d938b4e3b7886a729d456bd3034325985acbdb5e21355b076d7acccf5"
sha256 cellar: :any_skip_relocation, x86_64_linux: "133e123b7b8f9956959847378b68fc0c68f1e591209bb060ab7c7d024426f343"
end
def install
system "./configure", "--parachute",
"--prefix=#{prefix}",
"--manprefix=#{man}"
# Unset LFLAGS, "-s" causes the linker to crash
system "make", "LFLAGS="
# Override BSD incompatible cp flags set in makefile
system "make", "install", "cpflags=RP"
end
test do
system "#{bin}/mpgtx", "--version"
end
end