void-packages/srcpkgs/nheko/template

29 lines
977 B
Bash

# Template file for 'nheko'
pkgname=nheko
version=0.6.4
revision=1
build_style=cmake
hostmakedepends="qt5-host-tools qt5-qmake pkg-config"
makedepends="qt5-multimedia-devel qt5-svg-devel qt5-tools-devel
tweeny spdlog mtxclient-devel boost-devel cmark-devel olm-devel json-c++
libsodium-devel lmdb++ lmdb-devel"
depends="hicolor-icon-theme"
short_desc="Desktop client for Matrix using Qt and C++14"
maintainer="Lorem <notloremipsum@protonmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/Nheko-Reborn/nheko"
distfiles="https://github.com/Nheko-Reborn/nheko/archive/v${version}.tar.gz"
checksum=5dbe32cb8760cfae6f05644568cabf422a368eec62918839a92e182d508f751e
pre_patch() {
vsed -e '/Werror/d' -i CMakeLists.txt
}
# this one is very memory hungry and can use as much as 3GB per cc1plus
# realistically, using any more than 8 jobs will easily lead to OOM
do_build() {
cd build
local njobs=${XBPS_MAKEJOBS}
[ "$njobs" -gt 8 ] && njobs=8
make -j${njobs}
}