Skip to content

Commit ca93486

Browse files
authored
Merge pull request #196866 from tux-mind/hotfix/libimobiledevice-head
libtatsu 1.0.4 (new formula)
2 parents 1315609 + c72f265 commit ca93486

File tree

2 files changed

+55
-8
lines changed

2 files changed

+55
-8
lines changed

Formula/lib/libimobiledevice.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ class Libimobiledevice < Formula
77
revision 3
88

99
bottle do
10-
sha256 cellar: :any, arm64_sequoia: "cfb98ddb4dd90260eb28f3d1d2b44fac69c1341a926a221dda85e0afde956bb3"
11-
sha256 cellar: :any, arm64_sonoma: "f496e32077cc020a7ffcb6a6afee3034fc4c55ced685ba0b2155c0355bbf7a95"
12-
sha256 cellar: :any, arm64_ventura: "c0f9da975e59842256875121304fdb0825909f3c43b8cf1271b505cd7436955e"
13-
sha256 cellar: :any, arm64_monterey: "b465efbb59cafd4d9ea16cefd5b0d33c1411da49855e14b5864ce139b65df8c6"
14-
sha256 cellar: :any, sonoma: "dfcb200312b7e57c99699a47ffc0ed522f3fe4d1913037003b706fe545daa082"
15-
sha256 cellar: :any, ventura: "a91555bb6c89202bbb68d84bfe425aeb63c50d4001c310d39643637d93bde290"
16-
sha256 cellar: :any, monterey: "aa17026544ec683e544113478c07c1d387e3566d949c32834b083ad72042be16"
17-
sha256 cellar: :any_skip_relocation, x86_64_linux: "c418aa763659463002269201586cd356c69e6a233b2040ced02a352498b362d8"
10+
rebuild 1
11+
sha256 cellar: :any, arm64_sequoia: "9bc550fcfb5ee4613073831691cda4cc54a88180e833a0f754886f1a34af4134"
12+
sha256 cellar: :any, arm64_sonoma: "2fc25461e9305a7cadd0ec50326048641a67a6231d73a4ccf69e0d90c4783a19"
13+
sha256 cellar: :any, arm64_ventura: "7017a85a4322e960abb9cc122ed45cf159eddc90c45a30d4a24aef14173ea0c6"
14+
sha256 cellar: :any, sonoma: "7ca1985300a97b783b50752ff9110cb9b02dc7d278a62451b36fa5b98d359708"
15+
sha256 cellar: :any, ventura: "c811173f433f58df573afeb557308c55be71309442e6088f0b2b93cafffb39cb"
16+
sha256 cellar: :any_skip_relocation, x86_64_linux: "d38d4434dc756c8153d4a0ed23ba0e68c643c7e9e1086cf08c5497700867cdb4"
1817
end
1918

2019
# libimobiledevice-glue is required for building future versions
2120
# Move outside of HEAD clause when there's a new release.
2221
head do
2322
url "https://github.com/libimobiledevice/libimobiledevice.git", branch: "master"
2423
depends_on "libimobiledevice-glue"
24+
depends_on "libtatsu"
2525
end
2626

2727
depends_on "autoconf" => :build

Formula/lib/libtatsu.rb

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
bottle do
10+
sha256 cellar: :any, arm64_sequoia: "3490caa14c81cdffce28d50ce34880ab9b95a193a26906bf035492e3c37a3b2d"
11+
sha256 cellar: :any, arm64_sonoma: "870c73a45691c13d672235e9a3ed53d0a9d76a7f1b9aafda775b541c1735c3d1"
12+
sha256 cellar: :any, arm64_ventura: "4a33d3d2692d953e3bd1c0a8561011152ab9dcb5d029f0bbc33315233337fe52"
13+
sha256 cellar: :any, sonoma: "fafd0d67b5ccd44ee5c33fd4ba38f063029a89582a21e5a88104f00638bc620f"
14+
sha256 cellar: :any, ventura: "70223395b5fb5525f701e78c40b9b5b4c9f897fec98bee2dff4af63612440da4"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "dd96d83e2a85b4c479893f9493d0ffb9d7f66d357216d08adb6a4a158f72a582"
16+
end
17+
18+
depends_on "autoconf" => :build
19+
depends_on "automake" => :build
20+
depends_on "libtool" => :build
21+
depends_on "pkg-config" => :build
22+
depends_on "libplist"
23+
24+
uses_from_macos "curl"
25+
26+
def install
27+
if build.head?
28+
system "./autogen.sh", *std_configure_args, "--disable-silent-rules"
29+
else
30+
system "./configure", *std_configure_args, "--disable-silent-rules"
31+
end
32+
system "make", "install"
33+
end
34+
35+
test do
36+
(testpath/"test.c").write <<~C
37+
#include "libtatsu/tss.h"
38+
39+
int main(int argc, char* argv[]) {
40+
tss_set_debug_level(0);
41+
return 0;
42+
}
43+
C
44+
system ENV.cc, "test.c", "-L#{lib}", "-ltatsu", "-o", "test"
45+
system "./test"
46+
end
47+
end

0 commit comments

Comments
 (0)