void-packages/srcpkgs/eiskaltdcpp-qt/template

28 lines
1.1 KiB
Bash

# Template file for 'eiskaltdcpp-qt'
pkgname=eiskaltdcpp-qt
version=2.4.1
revision=1
wrksrc="eiskaltdcpp-${version}"
build_style=cmake
configure_args="-DUSE_QT5=ON -DUSE_QT=OFF -DUSE_ASPELL=OFF -DLINK=STATIC"
hostmakedepends="gettext pkg-config qt5-tools-devel qt5-host-tools qt5-qmake"
makedepends="bzip2-devel zlib-devel libressl-devel libidn-devel lua52-devel
miniupnpc-devel qt5-devel qt5-multimedia-devel qt5-plugin-sqlite
qt5-plugin-mysql qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-tds"
short_desc="EiskaltDC++ is a file sharing program using DC and ADC protocols"
maintainer="Boris Pek <tehnick-8@yandex.ru>"
license="GPL-3.0-or-later"
homepage="https://github.com/eiskaltdcpp/eiskaltdcpp"
distfiles="https://github.com/eiskaltdcpp/eiskaltdcpp/archive/v${version}.tar.gz"
checksum=818f9622ac28d3cf1ae58af0a01e25af702781822b6edeb99c9d05d408a4798f
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-devel"
fi
case $XBPS_TARGET_MACHINE in
*-musl) makedepends+=" gettext-libs"
configure_args+=' -DCMAKE_EXE_LINKER_FLAGS="-lintl"';;
*) configure_args+=' -DCMAKE_EXE_LINKER_FLAGS="-lpthread"';;
esac