# Template file for 'toxcore' pkgname=toxcore version=0.2.21 revision=1 build_style=cmake configure_args="-DMUST_BUILD_TOXAV=ON -DBUILD_TOXAV=ON -DDHT_BOOTSTRAP=OFF -DBOOTSTRAP_DAEMON=ON" hostmakedepends="pkg-config" makedepends="libconfig-devel libsodium-devel libvpx-devel opus-devel" short_desc="Encrypted peer-to-peer instant messenger protocol library" maintainer="Piraty " license="GPL-3.0-or-later" homepage="https://tox.chat" changelog="https://raw.githubusercontent.com/TokTok/c-toxcore/master/CHANGELOG.md" distfiles="https://github.com/TokTok/c-toxcore/releases/download/v${version}/c-toxcore-v${version}.tar.gz" checksum="3443a45d085fb3dee20514243787d06acde2d6c89130076d6f932534581a4ac7" conf_files="/etc/tox-bootstrapd.conf" system_accounts="_tox_bootstrapd" make_dirs="/var/lib/tox-bootstrapd 0700 _tox_bootstrapd _tox_bootstrapd" _tox_bootstrapd_homedir="/var/lib/tox-bootstrapd" _tox_bootstrapd_desc="Account to run Tox's DHT bootstrap daemon" if [ "${XBPS_CHECK_PKGS}" ]; then configure_args+=" -DAUTOTEST=ON" fi do_check() { ctest --output-on-failure $makejobs --test-dir build -E group_sync # getting stuck } post_install() { vconf other/bootstrap_daemon/tox-bootstrapd.conf vsv tox-bootstrapd } toxcore-devel_package() { short_desc+=" - development files" depends="${sourcepkg}>=${version}_${revision}" pkg_install() { vmove usr/include vmove "usr/lib/*.a" vmove "usr/lib/*.so" vmove usr/lib/pkgconfig } }