void-packages/srcpkgs/nheko/template
2020-06-20 01:43:43 -07:00

27 lines
1.1 KiB
Bash

# Template file for 'nheko'
pkgname=nheko
version=0.7.2
revision=2
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=412908fcec0e66a0557db5359556b65e85dd22b8644a6a2ed569a90dea4bde3c
# 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}
}