File: build-openssl.sh

package info (click to toggle)
kitinerary 25.12.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 20,492 kB
  • sloc: cpp: 214,550; javascript: 10,610; sh: 303; xml: 164; python: 48; makefile: 17
file content (25 lines) | stat: -rwxr-xr-x 569 bytes parent folder | download | duplicates (2)
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
#!/bin/bash
# SPDX-FileCopyrightText: 2019-2022 Volker Krause <vkrause@kde.org>
# SPDX-License-Identifier: BSD-2-Clause
set -e
set -x

OPENSSL_VERSION=3.5.4

mkdir -p $BUILD_ROOT
mkdir -p $STAGING_ROOT

pushd $BUILD_ROOT

git clone --branch openssl-$OPENSSL_VERSION --depth 1 https://github.com/openssl/openssl.git
cd openssl

./config --prefix=$STAGING_ROOT --openssldir=$STAGING_ROOT
make -j 4
make install_dev
rm -f $STAGING_ROOT/lib/libcrypto.so*
rm -f $STAGING_ROOT/lib64/libcrypto.so*
rm -f $STAGING_ROOT/lib/libssl.so*
rm -f $STAGING_ROOT/lib64/libssl.so*

popd