blob: 7fbfde65d18f0a54f4e138395127310cf0b66a43 (
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
31
32
33
34
35
36
37
38
39
|
# Maintainer: Callum Parsey <callum@neoninteger.au>
# Contributor: [object Object] <objekt-Objekt@proton.me>
pkgname=libquotient-encryption
pkgver=0.7.2
pkgrel=1
pkgdesc="A Qt library to write cross-platform clients for Matrix (with experimental encryption support)"
arch=(x86_64 aarch64)
url="https://github.com/quotient-im/libQuotient"
license=("LGPL2.1")
depends=("gcc-libs" "glibc" "libolm" "openssl" "qt5-base" "qt5-multimedia" "qtkeychain-qt5")
makedepends=("cmake")
provides=("libquotient" "libQuotient.so=${pkgver%.*}-64")
conflicts=("libquotient")
source=("https://github.com/quotient-im/libQuotient/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=("62ff42c8fe321e582ce8943417c1d815ab3f373a26fa0d99a5926e713f6a9382")
build() {
cmake -B build -S "libQuotient-${pkgver}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DBUILD_SHARED_LIBS=1 \
-DBUILD_TESTING=OFF \
-DQuotient_ENABLE_E2EE=ON
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
install -Dm 644 "libQuotient-${pkgver}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
# NOTE: There does not seem to be a way to inhibit generating the
# Android Native Development Kit (NDK) build file without patching
# libQuotient's build script. This file has a generic name which
# will conflict with the official `libquotient` package, so it must
# therefore be removed manually.
rm -r "${pkgdir}/usr/share/ndk-modules"
}
|