# Template file for 'chatterino2' pkgname=chatterino2 version=2.3.5 revision=1 _libcommuni_commit="a7b32cd6fa0640721b6114b31d37d79ebf832411" _serialize_commit="7d37cbfd5ac3bfbe046118e1cec3d32ba4696469" _settings_commit="04792d853c7f83c9d7ab4df00279442a658d3be3" _signals_commit="25e4ec3b8d6ea94a5e65a26e7cfcbbce3b87c5d6" _sanitizers_cmake_commit="99e159ec9bc8dd362b08d18436bd40ff0648417b" create_wrksrc=yes build_wrksrc="chatterino2-${version}" build_style=cmake configure_args="-DUSE_SYSTEM_QTKEYCHAIN=ON" hostmakedepends="qt5-qmake qt5-host-tools" makedepends="qt5-tools-devel qt5-multimedia-devel qt5-svg-devel qtkeychain-qt5-devel boost-devel openssl-devel rapidjson websocketpp" depends="qt5-imageformats qt5-svg" short_desc="Chat client for twitch.tv" maintainer="Orphaned " license=MIT homepage="https://chatterino.com" changelog="https://chatterino.com/changelog" distfiles="https://github.com/Chatterino/chatterino2/archive/refs/tags/v${version}.tar.gz https://github.com/Chatterino/libcommuni/archive/${_libcommuni_commit}.tar.gz https://github.com/pajlada/serialize/archive/${_serialize_commit}.tar.gz https://github.com/pajlada/settings/archive/${_settings_commit}.tar.gz https://github.com/pajlada/signals/archive/${_signals_commit}.tar.gz https://github.com/arsenm/sanitizers-cmake/archive/${_sanitizers_cmake_commit}.tar.gz" checksum="f1fff3523f5a3f633430d44f7ca6c6c718a515258d50004a855e69e4aa989b4e d6fd560851357d1e52f93604314215c75b291104e054c84a16c34d7d83d40f14 d0da2cebd5dfd7b20f7247f1e4fb6b8a866434db49316a067b6c798ec8217c63 702e97d8f2fcaec65256e6f691c3ed055924430ce64b29ebe74f3769a9d50d71 ae098841b0f33079366eff8bc44fe3f2f2f65e70259c1cc9ff8d727c4edf974c f9cf386638f455c5d2e7a835b95941201387d2531b8682942d59827663b58341" if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then makedepends+=" libatomic-devel" LIBS="-latomic" fi patch_args="-Np1 --directory=${build_wrksrc}" post_extract() { rmdir ${build_wrksrc}/lib/libcommuni ${build_wrksrc}/lib/serialize \ ${build_wrksrc}/lib/settings ${build_wrksrc}/lib/signals \ ${build_wrksrc}/lib/rapidjson ${build_wrksrc}/lib/websocketpp \ ${build_wrksrc}/cmake/sanitizers-cmake mv "libcommuni-${_libcommuni_commit}" "${build_wrksrc}/lib/libcommuni" mv "serialize-${_serialize_commit}" "${build_wrksrc}/lib/serialize" mv "settings-${_settings_commit}" "${build_wrksrc}/lib/settings" mv "signals-${_signals_commit}" "${build_wrksrc}/lib/signals" mv "sanitizers-cmake-${_sanitizers_cmake_commit}" "${build_wrksrc}/cmake/sanitizers-cmake" } post_install() { vlicense LICENSE }