/
abook.rb
49 lines (43 loc) 路 2.17 KB
/
abook.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
37
38
39
40
41
42
43
44
45
46
47
48
49
class Abook < Formula
desc "Address book with mutt support"
homepage "https://abook.sourceforge.io/"
url "https://abook.sourceforge.io/devel/abook-0.6.1.tar.gz"
sha256 "f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9"
license all_of: ["GPL-2.0-only", "GPL-2.0-or-later", "GPL-3.0-or-later", :public_domain, "X11"]
head "https://git.code.sf.net/p/abook/git.git", branch: "master"
livecheck do
url :homepage
regex(/href=.*?abook[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 arm64_sonoma: "c0b9ae72d7b4b319def0cc4f65051a392a3cd9318d607d736b6d80eb5eee3210"
sha256 arm64_ventura: "dbcc8ffc1eb5ee674721acec2fc715030ba3c53553f0b419c71994f72925e298"
sha256 arm64_monterey: "24854522e2901befeb323be066c744ab4471920495b7a91280e9d05c9bc3b9e7"
sha256 arm64_big_sur: "e062925ce6b559649d5574f2ee4a709611df4a9a54f3396cf706c2a399cc747f"
sha256 sonoma: "ee3e21157d0d6a21e8070e89e102ebeef8b4d7a4a8e72b3440d8638141a35bf5"
sha256 ventura: "82da61749b4896e7e09c2655a372f49a371d660f089c494ca49091a05a2f1993"
sha256 monterey: "923df44c0bbcdcb70df775092fb6aacb3c7c4740a12d40ce6f5ad4a8dd7ea91f"
sha256 big_sur: "0c4b7d1c41dbd920e192711e8ed1200db46c30be141aaaeb606c41718d0c2a79"
sha256 catalina: "09e77aa3db2cf8a702effbebbbf83f7a2f860b0d5db6bcf37549edb7db5438a7"
sha256 mojave: "a6ab99c751a03e11e2ace660ad9325a9fe4262598f284c0fb87626778383e29d"
sha256 high_sierra: "a0461ecc678e5cb65a901bd39dbd7f0f8015a29ed605e6cf28f1315d5c347ecb"
sha256 x86_64_linux: "32ec309e47f9cc195c0bc8c9bccdf1169ff91e211991eeb1fb04d91872c3be51"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "gettext"
depends_on "readline"
def install
# fix "undefined symbols" error caused by C89 inline behaviour
inreplace "database.c", "inline int", "int"
system "autoreconf", "-ivf"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make", "install"
end
test do
system "#{bin}/abook", "--formats"
end
end