This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
aktualizr.rb
47 lines (40 loc) · 1.54 KB
/
aktualizr.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
class Aktualizr < Formula
desc "C++ Client for HERE OTA Connect"
homepage "https://github.com/advancedtelematic/aktualizr"
version = "2020.10"
revision = "1255aa24fe55f99b606027c8acc8cd80db29a282"
url "https://github.com/advancedtelematic/aktualizr.git", using: :git, tag: version.to_s, revision: revision.to_s
head "https://github.com/advancedtelematic/aktualizr.git"
# in case of --HEAD brewing the global version attribute will be equal to HEAD-<short-latest-commit-hash-of-master>
# in case of stable/default brewing the global version will be equal to the latest release tag
bottle do
root_url "https://github.com/advancedtelematic/aktualizr/releases/download/2020.10"
cellar :any
sha256 "285e050e91d443c527080371d3420735cb300dd5ab749c0ced694d670609f57f" => :mojave
end
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "[email protected]" => :build
depends_on "asn1c"
depends_on "boost"
depends_on "curl"
depends_on "libarchive"
depends_on "libsodium"
depends_on "[email protected]"
def install
args = %W[
-DAKTUALIZR_VERSION=#{version}
-DCMAKE_INSTALL_PREFIX=#{prefix}
-DBoost_USE_MULTITHREADED=ON
-DOPENSSL_SSL_LIBRARY=#{Formula["[email protected]"].opt_prefix}/lib/libssl.dylib
-DOPENSSL_CRYPTO_LIBRARY=#{Formula["[email protected]"].opt_prefix}/lib/libcrypto.dylib
]
mkdir "build" do
system "cmake", "..", *std_cmake_args, *args
system "make", "install", "-j#{ENV.make_jobs}"
end
end
test do
system "#{bin}/aktualizr", "--help"
end
end