| 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 |
# About short paths to use with VCPKG, see https://github.com/microsoft/vcpkg/issues/24751 |
| 11 |
# /c/ is C:/ drive |
| 12 |
# /e/ is E:/ drive |
| 13 |
|
| 14 |
# Absolute path where are installed VCPKG scripts, portfiles, and configurations. |
| 15 |
VCPKG_DIR="/e/vcpkg" |
| 16 |
|
| 17 |
# Absolute path where are installed all compiled targets. |
| 18 |
INSTALL_DIR="/e/dk" |
| 19 |
|
| 20 |
# Absolute path where are downloaded all tarballs to compile. |
| 21 |
DOWNLOAD_DIR="/e/d" |
| 22 |
|
| 23 |
# Absolute path where are compiled all tarballs |
| 24 |
BUILDING_DIR="/e/b" |
| 25 |
|
| 26 |
VCPKG_TRIPLET="x64-windows" |
| 27 |
|
| 28 |
VCPKG_COMMON_OPTIONS=( |
| 29 |
"--disable-metrics" |
| 30 |
"--no-print-usage" |
| 31 |
"--triplet ${VCPKG_TRIPLET}" |
| 32 |
"--x-buildtrees-root=${BUILDING_DIR}" |
| 33 |
"--x-install-root=${INSTALL_DIR}" |
| 34 |
"--downloads-root=${DOWNLOAD_DIR}" |
| 35 |
"--vcpkg-root=${VCPKG_DIR}" |
| 36 |
) |
| 37 |
|
| 38 |
VCPKG_INSTALL_PREFIX=$INSTALL_DIR/$VCPKG_TRIPLET |
| 39 |
|
| 40 |
# Do not enable binary cache of ports. |
| 41 |
export VCPKG_BINARY_SOURCES=clear |
| 42 |
|
| 43 |
#------------------------------------------------------------------------------------------- |
| 44 |
|
| 45 |
# URL to git repository to checkout digiKam source code |
| 46 |
# git protocol version which require a developer account with ssh keys. |
| 47 |
DK_GITURL="[email protected]:graphics/digikam.git" |
| 48 |
# https protocol version which give annonyous access. |
| 49 |
#DK_GITURL="https://invent.kde.org/graphics/digikam.git" |
| 50 |
|
| 51 |
# digiKam tarball information. |
| 52 |
DK_URL="http://download.kde.org/stable/digikam" |
| 53 |
|
| 54 |
# Location to build source code. |
| 55 |
DK_BUILDTEMP=$BUILDING_DIR/dktemp |
| 56 |
|
| 57 |
# Qt version to use in bundle and provided by VCPKG. |
| 58 |
#DK_QTVERSION="5" |
| 59 |
DK_QTVERSION="6" |
| 60 |
|
| 61 |
# digiKam tag version from git. Official tarball do not include extra shared libraries. |
| 62 |
# The list of tags can be listed with this url: https://invent.kde.org/graphics/digikam/-/tags |
| 63 |
# If you want to package current implementation from git, use "master" as tag. |
| 64 |
#DK_VERSION=v7.6.0 |
| 65 |
DK_VERSION=master |
| 66 |
#DK_VERSION=qt5-maintenance |
| 67 |
|
| 68 |
#DK_REVISION=7d64840905ba968de186a9f30bc3ccff64c89224 |
| 69 |
|
| 70 |
# Installer sub version to differentiates newer updates of the installer itself, even if the underlying application hasn’t changed. |
| 71 |
DK_SUBVER="" |
| 72 |
|
| 73 |
# Installer will include or not digiKam debug symbols |
| 74 |
DK_DEBUG=0 |
| 75 |
|
| 76 |
# Sign bundles with GPG. Passphrase must be hosted in ~/.gnupg/dkorg-gpg-pwd.txt |
| 77 |
DK_SIGN=0 |
| 78 |
|
| 79 |
# Upload automatically bundle to files.kde.org (pre-release only). |
| 80 |
DK_UPLOAD=1 |
| 81 |
DK_UPLOADURL="[email protected]" |
| 82 |
|
| 83 |
# KDE frameworks version + Upload URL. |
| 84 |
# See official release here: https://download.kde.org/stable/frameworks/ |
| 85 |
|
| 86 |
if [[ $DK_QTVERSION == 5 ]] ; then |
| 87 |
|
| 88 |
# KDE KF5 frameworks version. |
| 89 |
# See official release here: https://download.kde.org/stable/frameworks/ |
| 90 |
DK_KDE_VERSION="5.116" |
| 91 |
|
| 92 |
# KDE Plasma version. |
| 93 |
# See official release here: https://download.kde.org/stable/plasma/ |
| 94 |
DK_KP_VERSION="5.27.12" |
| 95 |
|
| 96 |
# KDE Application version. |
| 97 |
# See official release here: https://download.kde.org/stable/release-service/ |
| 98 |
DK_KA_VERSION="24.05.1" |
| 99 |
|
| 100 |
DK_UPLOADDIR="/srv/archives/files/digikam/legacy" |
| 101 |
|
| 102 |
else |
| 103 |
|
| 104 |
# KDE KF6 frameworks version. |
| 105 |
# See official release here: https://download.kde.org/stable/frameworks/ |
| 106 |
DK_KDE_VERSION="v6.26.0" |
| 107 |
|
| 108 |
# KDE Plasma version. |
| 109 |
# See official release here: https://download.kde.org/stable/plasma/ |
| 110 |
DK_KP_VERSION="v6.6.4" |
| 111 |
|
| 112 |
# KDE Application version. |
| 113 |
# See official release here: https://download.kde.org/stable/release-service/ |
| 114 |
DK_KA_VERSION="v26.04.1" |
| 115 |
|
| 116 |
DK_UPLOADDIR="/srv/archives/files/digikam" |
| 117 |
|
| 118 |
fi |