diff options
-rw-r--r-- | testing/olm/APKBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/olm/APKBUILD b/testing/olm/APKBUILD new file mode 100644 index 0000000000..2c8ed9c6bd --- /dev/null +++ b/testing/olm/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +pkgname=olm +pkgver=3.1.2 +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=RelWithDebugInfo \ + -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="78372140d8a0eb5b137ed5f324c52fd2e0000bb91f43eaf84e563dbbc16612d860243a13ba4517ab06e8433b6a68216bc70dfa6bad4e2f8fc3e5fec206a5d4a2 olm-3.1.2.tar.gz" |