aboutsummaryrefslogtreecommitdiffstats
path: root/community/axc/APKBUILD
blob: 0441a651ee170d58e2876d8249d70e96f886da52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=axc
pkgver=0.3.6
pkgrel=0
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="
0e02282e42597eaf641fcd620c103c4892b26120f9aec442ce61b99e2a5042d62213bed7786aede296e1024fea26ef9a21950d96a9a520ca6a5d5c524620f42d  axc-0.3.6.tar.gz
d1dcc3a6d538c07ecb203058687a5e2f6d52fbd5653673db2205a56b8e3f82938261c24d8309c2315bbb3bbc7b1812d2853e6c3251821ad973bd61a6fbc97349  0002-added-pkgconfig-suport.patch
11e07e4f62b82fc0b72bb54e2ad354fc7c18039b71e91afdb0e76d7ef62db491bcb38dafa646c239b6eee078362851f477d250b510dba5e1c4acf164c316df4a  0003-no-longer-statically-build-against-libsignal-protoco.patch
"