aboutsummaryrefslogtreecommitdiffstats
path: root/testing/olm/APKBUILD
blob: fe259b5148536d49a93539737ec9a44d617c7450 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=olm
pkgver=3.1.3
pkgrel=0
pkgdesc="Implementation of the olm and megolm cryptographic ratchets"
arch="all"
url="https://gitlab.matrix.org/matrix-org/olm"
license="Apache-2.0"
makedepends="cmake"
source="$pkgname-$pkgver.tar.gz::https://gitlab.matrix.org/matrix-org/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-dev"

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

check() {
	cd "$builddir"/tests
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" make install
}
sha512sums="1ae729d133fbb9154b755baf4cddc338b6cd50b73a849310bc88f60603169389ad686241d832b3a0a0d43d7a996be3e8d4c82f2dca70c5935574d0fe59f0df72  olm-3.1.3.tar.gz"