homebrew-core/Formula/tasksh.rb

46 lines
2.0 KiB
Ruby

class Tasksh < Formula
desc "Shell wrapper for Taskwarrior commands"
homepage "https://gothenburgbitfactory.org/projects/tasksh.html"
url "https://taskwarrior.org/download/tasksh-1.2.0.tar.gz"
sha256 "6e42f949bfd7fbdde4870af0e7b923114cc96c4344f82d9d924e984629e21ffd"
license "MIT"
revision 1
head "https://github.com/GothenburgBitFactory/taskshell.git", branch: "master"
livecheck do
url "https://gothenburgbitfactory.org"
regex(/href=.*?tasksh[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
rebuild 1
sha256 cellar: :any, arm64_ventura: "1a8bbc54e5712ab5b9caa686e6348365da4c8bdaebeaae474be2edda28368d72"
sha256 cellar: :any, arm64_monterey: "6c6390a79e5f4645f2cf2507a1c29ad1b935a5f51d87387412e557343688a11d"
sha256 cellar: :any, arm64_big_sur: "590c43b791080cc6ca56cef896c9e75a8ca77915b061a1d0a711a0489e69ab63"
sha256 cellar: :any, ventura: "d0a97986a19732ce4d3818c5b452f6ce636ce957e401350cade47190e5b7b2e0"
sha256 cellar: :any, monterey: "778d32859e2a65b224819a39d022611b7959fba4d72d08a45d42f76bf6cf6cf8"
sha256 cellar: :any, big_sur: "987789014e770fb3b4b1d4500321877c457ba2a1dde2fc9925762dfb0d7da541"
sha256 cellar: :any, catalina: "68a13aa8ea81fd1fe7c2c5e9eadd3850fe21265b34c4cf2f1cf7e7ede3caeaee"
sha256 cellar: :any, mojave: "a2178acd290abac6dc8c024b48304c05660616639c7de1c7b35eb166ae8345dc"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e8a89402e614a9f93aa6716e6b4c442b44f2f0471c0d8534096ee8428565a149"
end
depends_on "cmake" => :build
depends_on "task"
on_linux do
depends_on "readline"
end
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
end
test do
system "#{bin}/tasksh", "--version"
(testpath/".taskrc").write "data.location=#{testpath}/.task\n"
assert_match "Created task 1.", pipe_output("#{bin}/tasksh", "add Test Task", 0)
end
end