diff --git a/Formula/qalculate-gtk.rb b/Formula/qalculate-gtk.rb new file mode 100644 index 0000000000..88f7249301 --- /dev/null +++ b/Formula/qalculate-gtk.rb @@ -0,0 +1,21 @@ +class QalculateGtk < Formula + desc "Multi-purpose desktop calculator" + homepage "https://qalculate.github.io/" + url "https://github.com/Qalculate/qalculate-gtk/releases/download/v2.8.1/qalculate-gtk-2.8.1.tar.gz" + sha256 "d22a77ce0b480f3a6f7c1288eed1c7969d74bb4f1bd395f6a45335dae3f50115" + + depends_on "intltool" => :build + depends_on "pkg-config" => :build + depends_on "adwaita-icon-theme" + depends_on "gtk+3" + depends_on "libqalculate" + + def install + system "./configure", "--prefix=#{prefix}" + system "make", "install" + end + + test do + system "#{bin}/qalculate-gtk", "-v" + end +end