# Template file for 'wsjtx'
pkgname=wsjtx
version=3.0.1
revision=1
build_style=cmake
configure_args="-DRIGCTLCOM_EXE= -DRIGCTL_EXE= -DRIGCTLD_EXE=
 -DBoost_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include"
hostmakedepends="pkg-config gcc-fortran ruby-asciidoctor asciidoc qt5-qmake
 qt5-host-tools"
makedepends="boost-devel-minimal
 fftw-devel libgomp-devel hamlib-devel libusb-devel qt5-devel
 qt5-multimedia-devel qt5-tools-devel qt5-serialport-devel qt5-plugin-mysql
 qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds qt5-websockets-devel"
depends="qt5-plugin-sqlite"
short_desc="Weak-signal Amateur Radio communication program"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-3.0-or-later"
homepage="https://wsjtx.github.io/wsjtx/index.html"
changelog="https://wsjtx.github.io/wsjtx/Release_Notes.txt"
distfiles="https://github.com/WSJTX/wsjtx/archive/refs/tags/v${version}.tar.gz"
checksum=4f67a2a1e595ec6c9826eaee013d96673ddd084f7ab7db9bca1d7cf8b15a5ed6

post_patch() {
	vsed -e 's/ -Werror / /' -i CMakeLists.txt
}

post_install() {
	rm ${DESTDIR}/usr/share/man/man1/rigctl{,d,com}-wsjtx.1.gz
}
