void-packages/srcpkgs/qtox/template
2022-01-12 20:53:18 +01:00

30 lines
1.1 KiB
Bash

# Template file for 'qtox'
pkgname=qtox
version=1.17.4
revision=1
wrksrc="qTox-${version}"
build_style=cmake
configure_args="-DUPDATE_CHECK=OFF
-DGIT_DESCRIBE=${version}
$(vopt_if snorenotify -DDESKTOP_NOTIFICATIONS=ON)"
hostmakedepends="pkg-config qt5-host-tools qt5-devel"
makedepends="ffmpeg-devel libexif-devel libopenal-devel libsodium-devel
libvpx-devel opus-devel qrencode-devel qt5-svg-devel sonnet-devel
sqlcipher-devel toxcore-devel
$(vopt_if snorenotify snorenotify-devel)"
depends="qt5-plugin-sqlite"
short_desc="QT-based TOX instant messenger client"
maintainer="Piraty <piraty1@inbox.ru>"
license="GPL-3.0-or-later"
homepage="https://wiki.tox.chat/clients/qtox"
changelog="https://raw.githubusercontent.com/qTox/qTox/master/CHANGELOG.md"
distfiles="https://github.com/qTox/qTox/archive/v${version}.tar.gz"
checksum=3d2fe2a344c83c50e6603d2a4070f2cc0c6ccd13fa5e77457eff96f57ee6f8c2
build_options="snorenotify"
build_options_default="snorenotify"
desc_option_snorenotify="Enable support for desktop notifications"
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi