From 60c5b0f127e002057c3e057b59da6178808d59d4 Mon Sep 17 00:00:00 2001 From: Dan Theisen Date: Sat, 24 Oct 2020 16:59:41 +0000 Subject: user/olm: new package --- user/olm/APKBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 user/olm/APKBUILD (limited to 'user') diff --git a/user/olm/APKBUILD b/user/olm/APKBUILD new file mode 100644 index 000000000..fd4e86072 --- /dev/null +++ b/user/olm/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Dan Theisen +# Maintainer: Dan Theisen +pkgname=olm +pkgver=3.2.1 +pkgrel=0 +pkgdesc="Implementation of the olm and megolm cryptographic ratchets" +url="https://gitlab.matrix.org/matrix-org/olm/" +arch="all" +license="Apache-2.0" +depends="" +makedepends="" +subpackages="$pkgname-dev" +source="https://gitlab.matrix.org/matrix-org/olm/-/archive/$pkgver/olm-$pkgver.tar.bz2" + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} \ + . + make +} + +check() { + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="adb9cff6148d19df4b83a287723219d4da9efd162f7a2824bee63d824d22c20a10fd2c2d8ce74aff5ec006c6dc8828bd6851cc82be93bc6c4524cf7067080412 olm-3.2.1.tar.bz2" -- cgit v1.2.3-70-g09d2