Skip to content

Commit

Permalink
contrib/libquotient: new package (0.8.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekopsykose committed Jun 23, 2024
1 parent 12b3faf commit 60e29b1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/libquotient-devel
44 changes: 44 additions & 0 deletions contrib/libquotient/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
pkgname = "libquotient"
pkgver = "0.8.2"
pkgrel = 0
build_style = "cmake"
configure_args = [
"-DBUILD_SHARED_LIBS=ON",
"-DBUILD_WITH_QT6=ON",
"-DQuotient_ENABLE_E2EE=ON",
"-DQuotient_INSTALL_TESTS=OFF",
]
# needs running server
make_check_args = ["-E", "testolmaccount"]
hostmakedepends = [
"cmake",
"ninja",
"pkgconf",
]
makedepends = [
"olm-devel",
"qt6-qtbase-devel",
"qtkeychain-devel",
]
pkgdesc = "Qt library for Matrix clients"
maintainer = "psykose <alice@ayaya.dev>"
license = "LGPL-2.1-or-later"
url = "https://quotient-im.github.io/libQuotient"
source = f"https://github.com/quotient-im/libQuotient/archive/refs/tags/{pkgver}.tar.gz"
sha256 = "12ff2fa8b80a934b9dd88fa3416a4b88e94bc0e18a8df0dcebfc90614dd2f5c9"


def post_install(self):
# android only
self.rm(self.destdir / "usr/share/ndk-modules", recursive=True)


@subpackage("libquotient-devel")
def _devel(self):
self.depends += [
"olm-devel",
"openssl-devel",
"qt6-qtbase-devel",
"qtkeychain-devel",
]
return self.default_devel()

0 comments on commit 60e29b1

Please sign in to comment.