1 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 pkgname=libsignal-protocol-c
6 pkgdesc="Signal Protocol C Library"
8 url="https://github.com/WhisperSystems/libsignal-protocol-c"
12 checkdepends=(check openssl)
13 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
14 sha256sums=('c22e7690546e24d46210ca92dd808f17c3102e1344cd2f9a370136a96d22319d')
17 cmake -B build -S ${pkgname}-${pkgver} \
18 -DCMAKE_INSTALL_PREFIX=/usr \
19 -DBUILD_SHARED_LIBS=ON \
20 $( ((CHECKFUNC)) && echo -DBUILD_TESTING=1)
31 make -C build DESTDIR="${pkgdir}" install