summaryrefslogtreecommitdiff
path: root/core/libressl/MAKEPKG
blob: c9ce279554a079a2ee35a2857d982256dea33b4a (plain)
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
#!/bin/mkpkg
# description: OpenBSD fork of OpenSSL
# url: https://www.libressl.org/

name=libressl
version=4.3.2
release=1
makedeps=(zlib)
source=(https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/$name-$version.tar.gz)

sha256sums=(
    "edf01aee24c65d69e6a9efcb9d44bcda682ff9d4f3bbbd95e794e1dfa90847b5"
)

build() {
    cd $name-$version
    ./configure \
        --prefix=/ \
        --libdir=/lib \
        --includedir=/include \
        --sysconfdir=/etc \
        --mandir=/usr/share/man \
        --with-openssldir=/etc/ssl \
        --disable-nc
    make
    make DESTDIR=$PKG install

    # CA certificate symlinks (cert.pem is the master bundle)
    mkdir -p "$PKG"/etc/ssl/certs
    ln -sf ../cert.pem "$PKG"/etc/ssl/certs/ca-certificates.crt
    ln -sf ../cert.pem "$PKG"/etc/ssl/certs/cert.pem

    rm -f $PKG/lib/*.a
    rm -rf $PKG/share
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh