homebrew-core/Formula/qpm.rb

37 lines
1.6 KiB
Ruby

class Qpm < Formula
desc "Package manager for Qt applications"
homepage "https://www.qpm.io"
url "https://github.com/Cutehacks/qpm.git",
tag: "v0.11.0",
revision: "fc340f20ddcfe7e09f046fd22d2af582ff0cd4ef"
license "Artistic-2.0"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_monterey: "cdb543a17a258d3ea86896f75a2803b8b4e71a61149042a62989829450e00471"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "9b0932dcd3977d04fab01619bc01e76d69b3194f1827be9e19f544587d5d53ca"
sha256 cellar: :any_skip_relocation, monterey: "e8db5fb7d7b7123b95b44553728576d7711818c06015dd09f5d3b579efc26088"
sha256 cellar: :any_skip_relocation, big_sur: "545f5e5f8e982649cf4977920de2c00b6da7c547ef694e7070b39e0a9408415a"
sha256 cellar: :any_skip_relocation, catalina: "5d5edc32931995dfa82429a1d8708e700de70208f36767808a433c1e9bb2ffb2"
sha256 cellar: :any_skip_relocation, mojave: "f8208ec60e2af6e9d1da2caa0ad1b48b5b027955c2daa51860fa1606b8c5acef"
sha256 cellar: :any_skip_relocation, high_sierra: "8c9d0dde0b7a4292f8fa04337805755ac16ce1aab08710463323afec2f73d551"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e13ae0e904094958943d4cf9b8bcb3c2b7059f48b616a2ee5b061e1c1aaa5a54"
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["GO111MODULE"] = "auto"
(buildpath/"src").mkpath
ln_s buildpath, "src/qpm.io"
system "go", "build", "-o", "bin/qpm", "qpm.io/qpm"
bin.install "bin/qpm"
end
test do
system bin/"qpm", "install", "io.qpm.example"
assert_predicate testpath/"qpm.json", :exist?
end
end