summaryrefslogtreecommitdiff
path: root/libolm/Pkgfile
blob: aa063f53c8ac324c86982220183cc07fa5b9d578 (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.10
    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 }

Generated by cgit