summaryrefslogtreecommitdiff
path: root/libs/libsignal-protocol-c/MAKEPKG
blob: 256627ba6df8b4d95ec1144be093119d41565cb2 (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
#!/bin/mkpkg
# description: Signal Protocol C library - ratcheting forward secrecy
# url: https://github.com/signalapp/libsignal-protocol-c

name=libsignal-protocol-c
version=2.3.3
release=1
source=(https://github.com/signalapp/$name/archive/refs/tags/v$version.tar.gz)
sha256sums=(
    "c22e7690546e24d46210ca92dd808f17c3102e1344cd2f9a370136a96d22319d"
)

build() {
    cd $name-$version
    
    cmake -B build \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_C_COMPILER=clang \
        -DBUILD_SHARED_LIBS=ON \
        -DBUILD_TESTING=OFF \
        -DCMAKE_POLICY_VERSION_MINIMUM=3.5
    
    cmake --build build
    DESTDIR=$PKG cmake --install build
}

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

# vim: filetype=sh