Skip to content

Commit f2611bd

Browse files
committed
libtatsu 1.0.4 (new formula)
Added libtatsu, a libimobiledevice-suite library to interact with apple signing servers.
1 parent 636fda8 commit f2611bd

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

Formula/lib/libtatsu.rb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
class Libtatsu < Formula
2+
desc "Library handling the communication with Apple's Tatsu Signing Server (TSS)"
3+
homepage "https://libimobiledevice.org/"
4+
url "https://github.com/libimobiledevice/libtatsu/releases/download/1.0.4/libtatsu-1.0.4.tar.bz2"
5+
sha256 "08094e58364858360e1743648581d9bad055ba3b06e398c660e481ebe0ae20b3"
6+
license "LGPL-2.1-or-later"
7+
head "https://github.com/libimobiledevice/libtatsu.git", branch: "master"
8+
9+
depends_on "autoconf" => :build
10+
depends_on "automake" => :build
11+
depends_on "libtool" => :build
12+
depends_on "pkg-config" => :build
13+
depends_on "libplist"
14+
15+
uses_from_macos "curl"
16+
17+
def install
18+
if build.head?
19+
system "./autogen.sh", *std_configure_args, "--disable-silent-rules"
20+
else
21+
system "./configure", *std_configure_args, "--disable-silent-rules"
22+
end
23+
system "make", "install"
24+
end
25+
26+
test do
27+
(testpath/"test.c").write <<~C
28+
#include "libtatsu/tss.h"
29+
30+
int main(int argc, char* argv[]) {
31+
tss_set_debug_level(0);
32+
return 0;
33+
}
34+
C
35+
system ENV.cc, "test.c", "-L#{lib}", "-ltatsu", "-o", "test"
36+
system "./test"
37+
end
38+
end

0 commit comments

Comments
 (0)