blob: e7b34cf7aa520b07662081bae470affe62c03593 (
plain) (
blame)
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
|
#!/bin/bash
name=openssl
version=1.1.1d
revision=0
sources=(
"https://www.openssl.org/source/${name}-${version}.tar.gz"
)
depends=(
"zlib"
)
function prepare() {
tar xf ${name}-${version}.tar.gz
cd ${name}-${version}
}
function build() {
export KERNEL_BITS=64
export TARGET=linux-x86_64
if [[ $(uname -s) == Darwin ]]; then
TARGET=darwin64-x86_64-cc
fi
./Configure \
--prefix="${_prefix}" \
--openssldir="${_prefix}/etc/ssl" \
shared \
threads \
zlib-dynamic \
no-ssl3-method \
${TARGET}
#mkdir -p ${_prefix}/{bin,lib,share}
make -j${_maxjobs}
}
function package() {
make \
DESTDIR="${_pkgdir}" \
MANDIR=${_prefix}/share/man \
MANSUFFIX=ssl \
install
}
|