Debian Codegraph @

project/bundles/homebrew/config.sh

raw
1 #!/bin/bash
2
3 # SPDX-FileCopyrightText: 2013-2026 by Gilles Caulier <caulier dot gilles at gmail dot com>
4 #
5 # SPDX-License-Identifier: BSD-3-Clause
6 #
7
8 ########################################################################
9
10 # Absolute path where are downloaded all tarballs to compile.
11 DOWNLOAD_DIR="`pwd`/temp.dwnld"
12
13 # Absolute path where are compiled all tarballs
14 BUILDING_DIR="`pwd`/temp.build"
15
16 ########################################################################
17
18 # Target macOS architecture: "x86_64" for Intel 64 bits, or "arm64" for Apple Silicon 64 bits.
19 ARCH_TARGET="`uname -m`"
20
21 if [[ $ARCH_TARGET = "x86_64" ]] ; then
22
23 # Minimum MacOS target for backward binary compatibility with Intel CPU
24 # This require to install older MacOS SDKs with Xcode.
25 # See this url to download a older SDK archive :
26 #
27 # https://github.com/alexey-lysiuk/macos-sdk
28 #
29 # Uncompress the archive to /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
30 # and adjust the property "MinimumSDKVersion" from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist
31 # sudo /usr/libexec/PlistBuddy -c "Set MinimumSDKVersion 10.13" /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist
32 #
33 # Possible values:
34 # 12.0 : Monterey : tested : Qt 5.13, 5.14, 5.15
35 # 11.0 : BigSur : tested : Qt 5.12, 5.13, 5.14, 5.15
36 # 10.15 : Catalina : tested : Qt 5.11, 5.12, 5.13, 5.14, 5.15
37 # 10.14 : Mojave : tested : Qt 5.9, 5.10, 5.11, 5.12, 5.13, 5.14, 5.15
38 # 10.13 : High Sierra : tested : Qt 5.9, 5.10, 5.11, 5.12, 5.13, 5.14, 5.15
39 # 10.12 : Sierra : tested : Qt 5.8, 5.9, 5.10, 5.11, 5.12, 5.13
40 # 10.11 : El Capitan : tested : Qt 5.5, 5.6, 5.7, 5.8, 5.9, 5.10, 5.11
41 # 10.10 : Yosemite : tested : Qt 5.5, 5.6, 5.7, 5.8, 5.9
42 # 10.9 : Mavericks : tested : Qt 5.5, 5.6, 5.7, 5.8
43 # 10.8 : MountainLion : tested : Qt 5.5, 5.6, 5.7
44 # 10.7 : Lion : untested : Qt 5.5, 5.6
45 # 10.6 : SnowLeopard : untested : ???
46 #
47 # Older values cannot be set as it do not support x86_64.
48 OSX_MIN_TARGET="10.15"
49
50 # Directory to build and install HomeBrew packages.
51 INSTALL_PREFIX="/usr/local/homebrew"
52 # INSTALL_PREFIX="/usr/local/hb-digikam.org.$ARCH_TARGET"
53
54 elif [[ $ARCH_TARGET = "arm64" ]] ; then
55
56 # Apple Silicon is supported since macOS BigSur
57 OSX_MIN_TARGET="11.3"
58
59 # Directory to build and install HomeBrew packages.
60 INSTALL_PREFIX="/opt/homebrew"
61 # INSTALL_PREFIX="/opt/hb-digikam.org.$ARCH_TARGET"
62
63 else
64
65 echo "Unsupported or invalid target architecture..."
66 exit -1
67
68 fi
69
70 echo "Target Architecture: $ARCH_TARGET"
71
72 # Directory where target bundle contents will be installed.
73 RELOCATE_PREFIX="/Applications/digiKam.org"
74
75 ########################################################################
76
77 # URL to git repository to checkout digiKam source code
78 # git protocol version which require a developer account with ssh keys.
79 DK_GITURL="[email protected]:graphics/digikam.git"
80 #DK_GITURL="[email protected]:michmill/digiKam.git"
81 # https protocol version which give annonyous access.
82 #DK_GITURL="https://invent.kde.org/graphics/digikam.git"
83
84 # digiKam tarball information
85 DK_URL="http://download.kde.org/stable/digikam"
86
87 # Location to build source code.
88 DK_BUILDTEMP=~/dktemp
89
90 # Qt version to use in bundle and provided by Homebrew.
91 #DK_QTVERSION="5"
92 DK_QTVERSION="6"
93
94
95 # digiKam tag version from git. Official tarball do not include extra shared libraries.
96 # The list of tags can be listed with this url: https://invent.kde.org/graphics/digikam/-/tags
97 # If you want to package current implementation from git, use "master" as tag.
98 #DK_VERSION=v8.5.0
99 DK_VERSION=master
100 #DK_VERSION="work/michmill/koboldllm"
101
102 # Installer sub version to differentiates newer updates of the installer itself, even if the underlying application hasn’t changed.
103 #DK_SUBVER="-01"
104
105 # needed to separate Homebrew from Macports
106 DK_APPLE_PACKAGE_MANAGER="homebrew"
107
108 # Installer will include or not digiKam debug symbols
109 DK_DEBUG=0
110
111 # copy debug symbols into ./data/symbols for debugging
112 DK_COPY_DEBUG_SYMBOLS=1
113
114 # Sign bundles with GPG. Passphrase must be hosted in ~/.gnupg/dkorg-gpg-pwd.txt
115 DK_SIGN=0
116
117 # Upload automatically bundle to files.kde.org (pre-release only).
118 DK_UPLOAD=0
119 DK_UPLOADURL="[email protected]"
120
121 # KDE frameworks version + Upload URL.
122 # See official release here: https://download.kde.org/stable/frameworks/
123
124 if [[ $DK_QTVERSION == 5 ]] ; then
125
126 # KDE Plasma version.
127 # See official release here: https://download.kde.org/stable/plasma/
128 DK_KDE_VERSION="5.116"
129
130 # KDE Application version.
131 # See official release here: https://download.kde.org/stable/release-service/
132 DK_KP_VERSION="5.27.11"
133
134 # KDE KF6 frameworks version.
135 # See official release here: https://download.kde.org/stable/frameworks/
136 DK_KA_VERSION="24.05.1"
137
138 DK_UPLOADDIR="/srv/archives/files/digikam/unstable"
139
140 else
141
142 # Use Qt 6.8 LTS for the moment.
143 MP_QTSUBVERSION="8"
144
145 # KDE KF6 frameworks version.
146 # See official release here: https://download.kde.org/stable/frameworks/
147 DK_KDE_VERSION="v6.14.0"
148
149 # KDE Plasma version.
150 # See official release here: https://download.kde.org/stable/plasma/
151 DK_KP_VERSION="v6.3.5"
152
153 # KDE Application version.
154 # See official release here: https://download.kde.org/stable/release-service/
155 DK_KA_VERSION="v25.04.1"
156
157 DK_UPLOADDIR="/srv/archives/files/digikam/unstable"
158
159 fi