# Template file for 'dino'
pkgname=dino
version=0.4.3
revision=1
build_style=cmake
configure_args="-DDINO_PLUGIN_ENABLED_notification-sound=ON -DUSE_SOUP3=ON"
hostmakedepends="cmake ninja gettext unzip pkg-config vala glib-devel"
makedepends="glib-devel qrencode-devel gtk4-devel gpgme-devel libgee-devel
 libgcrypt-devel libsoup3-devel libsignal-protocol-c-devel sqlite-devel
 libcanberra-devel gspell-devel libsrtp-devel libnice-devel gnutls-devel
 gst-plugins-base1-devel libadwaita-devel"
short_desc='Modern XMPP ("Jabber") Chat Client using GTK+/Vala'
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/dino/dino"
distfiles="https://github.com/dino/dino/archive/v${version}.tar.gz"
checksum=432d7c3b5170c595b1b31a8d64d73ded26e32af9f03a2d1a01828c22a8ade3fa

if [ "${XBPS_CHECK_PKGS}" ]; then
	configure_args+=" -DBUILD_TESTS=ON"
fi

do_check() {
	build/xmpp-vala-test
	build/signal-protocol-vala-test
}

post_install() {
	rm -rf ${DESTDIR}/usr/include
	rm -rf ${DESTDIR}/usr/lib/*.so
}