Skip to content

Commit

Permalink
timelimit: update 1.9.2 bottle.
Browse files Browse the repository at this point in the history
  • Loading branch information
gromgit committed Sep 3, 2024
1 parent a34b12a commit 1dc1b87
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Formula/t/timelimit.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
class Timelimit < Formula
desc "Limit a process's absolute execution time"
homepage "https://devel.ringlet.net/sysutils/timelimit/"
url "https://devel.ringlet.net/files/sys/timelimit/timelimit-1.9.2.tar.gz"
sha256 "320a72770288b2deeb9abbd343f9c27afcb6190bb128ad2a1e1ee2a03a796d45"
license "BSD-2-Clause"

livecheck do
url :homepage
regex(/latest release is .*?timelimit[._-]v?(\d+(?:\.\d+)+)</i)
end

bottle do
root_url "https://github.com/gromgit/homebrew-core-aarch64_linux/releases/download/timelimit-1.9.2"
sha256 cellar: :any_skip_relocation, aarch64_linux: "57648671da7fc2277efadcc743c75696cf957ec7a2de36f1972356f8596db35f"
end

def install
# don't install for specific users
inreplace "Makefile", "-o ${BINOWN} -g ${BINGRP}", ""
inreplace "Makefile", "-o ${SHAREOWN} -g ${SHAREGRP}", ""

args = %W[LOCALBASE=#{prefix} MANDIR=#{man}/man]

check_args = args + ["check"]
install_args = args + ["install"]

system "make", *check_args
system "make", *install_args
end

test do
assert_match "timelimit: sending warning signal 15",
shell_output("#{bin}/timelimit -p -t 1 sleep 5 2>&1", 143).chomp
end
end

0 comments on commit 1dc1b87

Please sign in to comment.