aboutsummaryrefslogtreecommitdiffstats
path: root/community/axc/APKBUILD
blob: afa9523b94af4e61dd3c2c9f61ac0bd95d7de3fa (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
42
43
44
45
46
47
# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=axc
pkgver=0.3.3
pkgrel=1
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
	0001-Add-make-install-target-shared-library-and-soname-su.patch
	0002-added-pkgconfig-suport.patch
	0003-no-longer-statically-build-against-libsignal-protoco.patch
	0004-Autogenerate-PKGCONFIG-file-through-Makefile.patch
	0005-pkgconfig-file-generation-with-correct-Requires-fiel.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
	ln -s libaxc.so.$pkgver "$pkgdir"/usr/lib/libaxc.so
	ln -s libaxc.so.$pkgver "$pkgdir"/usr/lib/libaxc.so.${pkgver%%.*}
}

sha512sums="9fe494eb4a264a31c137a4f21e4a53358d55f6f6b3bd2fab0fbe43c0e85f2372127a2a85d00d2e308f3785b30cf8161de3f696aaf71c232f594ef3c54b8f6771  axc-0.3.3.tar.gz
b2a3c6cccd7204d1d1246af33048bf6847c7ee439d97893007af93dfaa369ee8ec07b374f086e88c1f643a0c069105d5546083e2bff4fcfcbfb8c01b396defb9  0001-Add-make-install-target-shared-library-and-soname-su.patch
d1dcc3a6d538c07ecb203058687a5e2f6d52fbd5653673db2205a56b8e3f82938261c24d8309c2315bbb3bbc7b1812d2853e6c3251821ad973bd61a6fbc97349  0002-added-pkgconfig-suport.patch
11e07e4f62b82fc0b72bb54e2ad354fc7c18039b71e91afdb0e76d7ef62db491bcb38dafa646c239b6eee078362851f477d250b510dba5e1c4acf164c316df4a  0003-no-longer-statically-build-against-libsignal-protoco.patch
0382ca017854c99ba938f72a1483a60eb7814828c6c0088c6a764f13193e6bfc252a8036dc1e8c729b2a8ff6eb95f3c4273d4f8e8ec640cd929739ef55ff3805  0004-Autogenerate-PKGCONFIG-file-through-Makefile.patch
524ae18a6bd4e33d4a6af1be769a8f59d76cb28b40515463a099e4811d493ab27528bc5216926180bcacaa988508ae6951d1b1e2b7c243727878475db17147f7  0005-pkgconfig-file-generation-with-correct-Requires-fiel.patch"