# Template file for 'LGOGDownloader'
pkgname=LGOGDownloader
version=3.18
revision=2
build_style=cmake
configure_args="$(vopt_bool qt USE_QT_GUI)"
hostmakedepends="pkg-config"
makedepends="libtidy5-devel tinyxml2-devel libcurl-devel rhash-devel
 jsoncpp-devel boost-devel-minimal libboost_program_options libboost_iostreams
 libboost_filesystem openssl-devel zlib-devel
 $(vopt_if qt "qt6-webengine-devel qt6-declarative-devel
 qt6-webchannel-devel qt6-location-devel")"
short_desc="Open source downloader for GOG.com games that uses the GOG.com API"
maintainer="RunningDroid <runningdroid@zoho.com>"
license="WTFPL"
homepage="https://github.com/Sude-/lgogdownloader"
changelog="https://github.com/Sude-/lgogdownloader/releases"
distfiles="https://github.com/Sude-/lgogdownloader/archive/v${version}.tar.gz"
checksum=7f5a6f4a439e8a83975ba71a3aee6b866fce331f9d94b44f50c37cd6854e0a7a

build_options="qt"
desc_option_qt="Include QT WebEngine to support solving captchas"
