Date: Friday, April 7, 2023 @ 07:12:15
  Author: felixonmars
Revision: 1440796

archrelease: copy trunk to community-staging-x86_64

Added:
  libolm/repos/community-staging-x86_64/
  libolm/repos/community-staging-x86_64/PKGBUILD
    (from rev 1440795, libolm/trunk/PKGBUILD)
  libolm/repos/community-staging-x86_64/keys/

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

Copied: libolm/repos/community-staging-x86_64/PKGBUILD (from rev 1440795, 
libolm/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-04-07 07:12:15 UTC (rev 1440796)
@@ -0,0 +1,54 @@
+# Maintainer: Jonas Witschel <[email protected]>
+pkgname=('libolm' 'python-olm')
+pkgver=3.2.12
+_tag=04408694428e6130500e82ed58363dce053e60d4 # git rev-parse "$pkgver"
+pkgrel=2
+pkgdesc='Implementation of the Olm and Megolm cryptographic ratchets'
+arch=('x86_64')
+url='https://gitlab.matrix.org/matrix-org/olm'
+license=('APACHE')
+makedepends=('git' 'cmake' 'python' 'python-build' 'python-cffi' 
'python-future'
+             'python-installer' 'python-setuptools' 'python-wheel')
+checkdepends=('python-aspectlib' 'python-pytest' 'python-pytest-benchmark')
+source=("git+$url.git?signed#tag=$_tag")
+sha512sums=('SKIP')
+# PGP key can be obtained from 
https://packages.matrix.org/npm/olm/signing_key.asc
+validpgpkeys=('56CF24AEE5F4513280CC594BF75FDC22C1DE8453') # Matrix.org olm 
<[email protected]>
+
+pkgver() {
+       cd olm
+       git describe | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
+}
+
+build() {
+       cd olm
+       cmake -B build -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr
+       cmake --build build
+
+       cd python
+       python -m build --wheel --no-isolation
+}
+
+check() {
+       cd olm/build/tests
+       ctest
+
+       cd ../../python
+       PYTHONPATH="$(find build -name 'lib.*' -type d -print)" 
LD_LIBRARY_PATH=../build pytest
+}
+
+package_libolm() {
+       depends=('gcc-libs')
+       provides=('libolm.so')
+
+       cd olm/build
+       make DESTDIR="$pkgdir" install
+}
+
+package_python-olm() {
+       pkgdesc='Python bindings for Olm'
+       depends=('libolm' 'python' 'python-cffi' 'python-future' 'libolm.so')
+
+       cd olm/python
+       python -m installer --destdir="$pkgdir" dist/*.whl
+}

Reply via email to