2017-05-09 21:18:47 +02:00
|
|
|
# Maintainer: Konstantinos Sideris <siderisk at auth dot gr>
|
2019-05-12 02:28:49 +02:00
|
|
|
# Maintainer: Joseph Donofry <joe at joedonofry dot com>
|
2017-05-09 21:18:47 +02:00
|
|
|
|
2021-12-31 15:31:06 +01:00
|
|
|
pkgname=jjr-nheko
|
2022-04-19 13:36:44 +02:00
|
|
|
pkgver=0.9.3.r66.g7138c7a4
|
2017-05-09 21:18:47 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Desktop client for the Matrix protocol"
|
2021-07-02 02:44:53 +02:00
|
|
|
arch=("i686" "x86_64" "aarch64")
|
2017-05-09 21:18:47 +02:00
|
|
|
|
2019-05-12 20:32:16 +02:00
|
|
|
url="https://github.com/Nheko-Reborn/nheko"
|
2017-08-10 22:36:34 +02:00
|
|
|
license=("GPL3")
|
2017-05-09 21:18:47 +02:00
|
|
|
|
2022-01-05 20:32:33 +01:00
|
|
|
depends=("qt5-base" "lmdb" "qt5-graphicaleffects" "qt5-multimedia" "qt5-svg" "qt5-quickcontrols2" "qt5-declarative" "qtkeychain-qt5" "cmark" "openssl" "hicolor-icon-theme" "gstreamer" "gst-plugins-base" "gst-plugins-good" "gst-plugins-bad" "gst-plugin-qmlgl" "libnice" "libolm" "spdlog" "curl" "libevent" "qt5-imageformats")
|
|
|
|
makedepends=("git" "cmake" "gcc" "fontconfig" "qt5-tools" "nlohmann-json" "asciidoc" "sccache")
|
2021-11-17 05:44:14 +01:00
|
|
|
optdepends=("qt-jdenticon")
|
2018-04-12 22:44:36 +02:00
|
|
|
provides=("nheko")
|
2021-12-31 15:31:06 +01:00
|
|
|
conflicts=("nheko" "nheko-git")
|
2018-04-12 22:44:36 +02:00
|
|
|
|
2021-03-05 01:04:59 +01:00
|
|
|
source=($pkgname::git+https://github.com/Nheko-Reborn/nheko.git#branch=master)
|
2017-12-04 20:43:10 +01:00
|
|
|
md5sums=("SKIP")
|
2017-08-10 22:36:34 +02:00
|
|
|
|
2017-05-09 21:18:47 +02:00
|
|
|
pkgver() {
|
|
|
|
cd "$pkgname"
|
2021-03-05 01:04:59 +01:00
|
|
|
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
2017-05-09 21:18:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2022-04-19 13:36:44 +02:00
|
|
|
rm -f "$pkgname"/cmake/FindOlm.cmake
|
2018-07-16 21:15:37 +02:00
|
|
|
|
2022-04-19 13:36:44 +02:00
|
|
|
cmake -B build -S "$pkgname" -Wno-dev \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2022-01-05 20:32:33 +01:00
|
|
|
-DHUNTER_ENABLED=OFF \
|
|
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
|
|
-DUSE_BUNDLED_MTXCLIENT=ON \
|
|
|
|
-DUSE_BUNDLED_COEURL=ON \
|
|
|
|
-DUSE_BUNDLED_LMDBXX=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
|
|
|
|
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache
|
|
|
|
SCCACHE_S3_KEY_PREFIX="$pkgname" cmake --build build --config Release
|
2017-05-09 21:18:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-04-19 13:36:44 +02:00
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
2017-05-09 21:18:47 +02:00
|
|
|
}
|