homebrew-core/Formula/wayland-protocols.rb

37 lines
1.1 KiB
Ruby

class WaylandProtocols < Formula
desc "Additional Wayland protocols"
homepage "https://wayland.freedesktop.org"
url "https://wayland.freedesktop.org/releases/wayland-protocols-1.23.tar.xz"
sha256 "6c0af1915f96f615927a6270d025bd973ff1c58e521e4ca1fc9abfc914633f76"
license "MIT"
livecheck do
url "https://wayland.freedesktop.org/releases.html"
regex(/href=.*?wayland-protocols[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "46ff9ea4c52643e3a0c7291e4dcf3badcb3adc64648e6c3e3c949fdca53b4f49"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "pkg-config" => [:build, :test]
depends_on "wayland" => :build
depends_on :linux
def install
system "./autogen.sh", "--prefix=#{prefix}",
"--sysconfdir=#{etc}",
"--localstatedir=#{var}",
"--disable-silent-rules"
system "make"
system "make", "install"
end
test do
system "pkg-config", "--exists", "wayland-protocols"
assert_equal 0, $CHILD_STATUS.exitstatus
end
end