upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / libsignal-protocol-c / trunk / PKGBUILD
blobef97763e6095f25047e853f40b374a1904c1ebf9
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 pkgname=libsignal-protocol-c
4 pkgver=2.3.3
5 pkgrel=1
6 pkgdesc="Signal Protocol C Library"
7 arch=(x86_64)
8 url="https://github.com/WhisperSystems/libsignal-protocol-c"
9 license=(GPL3)
10 depends=(glibc)
11 makedepends=(cmake)
12 checkdepends=(check openssl)
13 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
14 sha256sums=('c22e7690546e24d46210ca92dd808f17c3102e1344cd2f9a370136a96d22319d')
16 build() {
17   cmake -B build -S ${pkgname}-${pkgver} \
18     -DCMAKE_INSTALL_PREFIX=/usr \
19     -DBUILD_SHARED_LIBS=ON \
20     $( ((CHECKFUNC)) && echo -DBUILD_TESTING=1)
21   make -C build
24 check() {
25   cd build
26   make -C tests
27   ctest
30 package() {
31   make -C build DESTDIR="${pkgdir}" install