Date: Sunday, March 29, 2020 @ 23:13:30
  Author: diabonas
Revision: 606633

archrelease: copy trunk to community-x86_64

Added:
  libolm/repos/community-x86_64/
  libolm/repos/community-x86_64/PKGBUILD
    (from rev 606632, libolm/trunk/PKGBUILD)

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

Copied: libolm/repos/community-x86_64/PKGBUILD (from rev 606632, 
libolm/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2020-03-29 23:13:30 UTC (rev 606633)
@@ -0,0 +1,56 @@
+# Maintainer: Jonas Witschel <diabo...@archlinux.org>
+pkgname=('libolm' 'python-olm')
+pkgver=3.1.4
+_tag=505e3e2b944599f4291d55b7700a79e3301f877d # git show-ref "$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-cffi' 'python-future' 'python-setuptools')
+checkdepends=('python-aspectlib' 'python-pytest' 'python-pytest-benchmark')
+source=("git+$url.git?signed#tag=$_tag")
+sha512sums=('SKIP')
+validpgpkeys=('56CF24AEE5F4513280CC594BF75FDC22C1DE8453') # Matrix.org olm 
<o...@matrix.org>
+
+pkgver() {
+       cd olm
+       git describe | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
+}
+
+build() {
+       cd olm
+       cmake -DCMAKE_INSTALL_PREFIX=/usr \
+             -DCMAKE_BUILD_TYPE=None \
+             -DCMAKE_C_FLAGS="${CFLAGS} ${CPPFLAGS}" \
+             -DCMAKE_CXX_FLAGS="${CXXFLAGS} ${CPPFLAGS}" \
+             -B build
+       cmake --build build
+
+       cd python
+       make olm-python3
+}
+
+check() {
+       cd olm/build/tests
+       ctest
+
+       cd ../../python
+       python olm_build.py
+       LD_LIBRARY_PATH=../build python -m pytest
+}
+
+package_libolm() {
+       depends=('gcc-libs')
+
+       cd olm/build
+       make DESTDIR="$pkgdir" install
+}
+
+package_python-olm() {
+       pkgdesc='Python bindings for Olm'
+       depends=('libolm' 'python-cffi' 'python-future')
+
+       cd olm/python
+       python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}

Reply via email to