# Contributor: Clayton Craft # Maintainer: Clayton Craft pkgname=axc pkgver=0.3.7 pkgrel=2 pkgdesc="Client lib for libsignal-c" arch="all" url="https://github.com/gkdr/axc" license="GPL-3.0-or-later" makedepends=" glib-dev libgcrypt-dev libsignal-protocol-c-dev sqlite-dev " checkdepends="cmocka-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/gkdr/axc/archive/v$pkgver.tar.gz 0002-added-pkgconfig-suport.patch 0003-no-longer-statically-build-against-libsignal-protoco.patch " subpackages="$pkgname-dev" build() { CFLAGS="-fPIC $CFLAGS" make } check() { make test_client make test_store } package() { DESTDIR="$pkgdir" PREFIX=/usr make install rm -f "$pkgdir"/usr/lib/*.a } sha512sums=" e9982a54307ebc4fbecdd6482e0ccc9b1d5539047f455f66a4f25c067e2da8eba782163ccf0ad8aac8b11867da5d7efb309c403cdfed464e6865d3e03e09ea11 axc-0.3.7.tar.gz d1dcc3a6d538c07ecb203058687a5e2f6d52fbd5653673db2205a56b8e3f82938261c24d8309c2315bbb3bbc7b1812d2853e6c3251821ad973bd61a6fbc97349 0002-added-pkgconfig-suport.patch 11e07e4f62b82fc0b72bb54e2ad354fc7c18039b71e91afdb0e76d7ef62db491bcb38dafa646c239b6eee078362851f477d250b510dba5e1c4acf164c316df4a 0003-no-longer-statically-build-against-libsignal-protoco.patch "