blob: 02bce442b52b377bffa6cdce936215ecc57ff3a8 (
plain)
1 # Description: Implementation of the olm and megolm cryptographic ratchets
2 # URL: https://gitlab.matrix.org/matrix-org/olm
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: cmake ninja
5
6 name=libolm
7 version=3.2.14
8 release=1
9 source=(https://gitlab.matrix.org/matrix-org/olm/-/archive/$version/olm-$version.tar.bz2)
10
11 build() {
12 cmake -S olm-$version -B build -G Ninja \
13 -D CMAKE_INSTALL_PREFIX=/usr \
14 -D CMAKE_INSTALL_LIBDIR=lib \
15 -D CMAKE_BUILD_TYPE=Release \
16 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
17 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
18 -Wno-dev
19 cmake --build build
20 DESTDIR=$PKG cmake --install build
21 }
|