void-packages/srcpkgs/nheko/template

28 lines
1.1 KiB
Bash

# Template file for 'nheko'
pkgname=nheko
version=0.7.1
revision=3
build_style=cmake
hostmakedepends="qt5-host-tools qt5-qmake pkg-config qt5-declarative"
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++ qt5-declarative-devel qt5-quickcontrols2-devel"
depends="hicolor-icon-theme qt5-quickcontrols2 qt5-graphicaleffects
qt5-multimedia"
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"
changelog="https://github.com/Nheko-Reborn/nheko/blob/master/CHANGELOG.md"
distfiles="https://github.com/Nheko-Reborn/nheko/archive/v${version}.tar.gz"
checksum=ce7ddacbf54707c7e76a816ffca51d73bb6360a38a96807666e3ddeeab8fccf4
# 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}
}