commit 8a6bc6dd44d05c6cfdfe85829de6d69f092318e0 Author: Leonidas Spyropoulos Date: Wed Feb 15 17:26:33 2023 +0000 nheko: initial commit in repos diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..872e36e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Leonidas Spyropoulos +# Contributor: David Runge +# Contributor: Luca Weiss +# Contributor: Konstantinos Sideris + +pkgname=nheko +pkgver=0.11.1 +pkgrel=2 +pkgdesc="Desktop client for the Matrix protocol" +arch=('x86_64') +url="https://github.com/Nheko-Reborn/nheko" +license=(GPL3) +depends=(qt5-svg qt5-quickcontrols2 qt5-graphicaleffects qt5-multimedia qtkeychain-qt5 \ + coeurl mtxclient lmdb cmark libolm hicolor-icon-theme gst-plugins-bad-libs) +optdepends=('qt-jdenticon: Auto-generated profile pictures (identicons)' + 'gst-plugins-base-libs: VoIP/Video calls' + 'gst-plugins-good: VoIP/Video calls' + 'gst-plugins-bad: VoIP/Video calls' + 'libnice: VoIP/Video calls' + 'gst-plugin-qmlgl: Screen sharing') +makedepends=(cmake ninja boost qt5-tools fontconfig nlohmann-json asciidoc lmdbxx spdlog) +checkdepends=(gtest gmock) +source=("$pkgname-$pkgver.tar.gz::https://github.com/Nheko-Reborn/nheko/archive/v$pkgver.tar.gz") +sha512sums=('3ccaa859ff76a78c024ea2159e666316a3505bc3a3220020a4805ee93351865868b56219ab8421c70ed9922c3f38fbb39370c7f98b702836bd3bb3665c712fda') + +prepare() { + mkdir -p build +} + +build() { + cmake \ + -Bbuild \ + -GNinja \ + -S "$pkgname-$pkgver" \ + -DCMAKE_BUILD_TYPE='None' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DCMAKE_INSTALL_LIBDIR='lib' \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_LIB_TESTS=ON \ + -DBUILD_LIB_EXAMPLES=OFF \ + -Wno-dev + cmake --build build --verbose +} + +package() { + depends+=( + mtxclient libmatrix_client.so + # lmdb liblmdb.so # https://bugs.archlinux.org/task/77537 + spdlog libspdlog.so + # cmark libcmark.so # https://bugs.archlinux.org/task/77538 + libolm libolm.so + ) + DESTDIR="${pkgdir}" cmake --install build +} +