forked from sjackman/linuxbrew-core
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
agedu.rb
36 lines (31 loc) · 1.45 KB
/
agedu.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class Agedu < Formula
desc "Unix utility for tracking down wasted disk space"
homepage "https://www.chiark.greenend.org.uk/~sgtatham/agedu/"
url "https://www.chiark.greenend.org.uk/~sgtatham/agedu/agedu-20200705.2a7d4a2.tar.gz"
version "20200705"
sha256 "432dd9602df326088956b3e4f5efe656ad09777873d38695e0d68810899941c2"
head "https://git.tartarus.org/simon/agedu.git"
livecheck do
url :homepage
regex(/href=.*?agedu[._-]v?(\d+(?:\.\d+)*)(?:[._-][\da-z]+)?\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, big_sur: "6b2aff0b1838cc529329fd0e178c05673b9e9879e3a8fc2910944d37ea027e0f"
sha256 cellar: :any_skip_relocation, catalina: "d5b1ceb8b45632543c913d12641cb820335b0e99fd823c9404222f0e087edef4"
sha256 cellar: :any_skip_relocation, mojave: "bb054128df68140a5cf8b7359a7d7c6357b13c08aa393b9481ff89124e614544"
sha256 cellar: :any_skip_relocation, high_sierra: "64a0584a579b71db75866548df7fef3eb7eb460023f3959aaf5e1c4d9e23bca8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b01514f30e6ba91a4708763d2e34ed096abae7a3d4200fbe2839dba98e966a5a"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "halibut" => :build
def install
system "./mkauto.sh"
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
test do
system bin/"agedu", "-s", "."
assert_predicate testpath/"agedu.dat", :exist?
end
end