void-packages/srcpkgs/kadu/template
2020-06-04 19:47:30 +02:00

80 lines
2.9 KiB
Bash

# Template file for 'kadu'
pkgname=kadu
version=4.3
revision=5
build_style=cmake
configure_args="-DCMAKE_PREFIX_PATH=${XBPS_CROSS_BASE}/usr
-DX11_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include
-DX11_FOUND=1 -DX11_Xutil_FOUND=1 -DX11_Xshape_FOUND=1
-DX11_Xfixes_FOUND=1 -DX11_Xscreensaver_FOUND=1
-DX11_X11_LIB=X11 -DX11_Xext_LIB=Xext
-DX11_Xfixes_LIB=Xfixes -DX11_Xscreensaver_LIB=Xss
-DQCA2_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include/QtCrypto
-DQCA2_LIBRARIES=qca -DENABLE_TESTS=OFF -Wno-dev"
hostmakedepends="pkg-config qt5-host-tools"
makedepends="libao-devel libsndfile-devel libarchive-devel
enchant-devel injeqt-devel libgadu-devel libidn-devel libotr-devel
qt5-devel qt5-xmlpatterns-devel qt5-declarative-devel qt5-multimedia-devel
qt5-script-devel qt5-svg-devel qt5-tools-devel qt5-webkit-devel qt5-x11extras-devel
qt5-plugin-mysql qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds
libmpdclient-devel qca-qt5-devel qxmpp-devel phonon-qt5-devel
libX11-devel libXfixes-devel libXScrnSaver-devel"
depends="${pkgname}-data-${version}_${revision} hicolor-icon-theme qca-qt5-ossl
$(vopt_if mysql qt5-plugin-mysql) $(vopt_if odbc qt5-plugin-odbc)
$(vopt_if pgsql qt5-plugin-pgsql) $(vopt_if sqlite qt5-plugin-sqlite)
$(vopt_if tds qt5-plugin-tds)"
short_desc="Instant Messenger client"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://sourceforge.net/projects/kadu/"
distfiles="${SOURCEFORGE_SITE}/kadu/${version}/kadu-${version}.tar.bz2"
checksum=ad5d1cbb908c3cd07f2955d343d44b993cd5639427a48a2912441955cfd2bd6e
build_options="mysql odbc pgsql sqlite tds"
build_options_default="sqlite"
desc_option_mysql="Use MySQL database plugin"
desc_option_odbc="Use ODBC database plugin"
desc_option_pgsql="Use PostgreSQL database plugin"
desc_option_sqlite="Use SQlite database plugin"
desc_option_tds="Use Tabular Data Stream database plugin"
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" ${makedepends}"
fi
pre_configure() {
# Disable plugins which require pkgs Void does not ship (yet)
# unity_integration: Ubuntu
# indicator_docking: requires messaging-menu
# word_fix: not packaged
sed -i ${wrksrc}/Plugins.cmake \
-e "s;unity_integration$;;" \
-e "s;indicator_docking$;;" \
-e "s;word_fix$;;"
}
kadu-data_package() {
short_desc+=" - data files"
archs=noarch
pkg_install() {
vmove usr/share/icons
vmove "usr/share/kadu/configuration/*.ui"
vmove usr/share/kadu/themes
vmove usr/share/kadu/scripts
vmove usr/share/kadu/syntax
vmove "usr/share/kadu/plugins/*.desc"
vmove "usr/share/kadu/plugins/configuration/*.ui"
vmove usr/share/kadu/translations
vmove usr/share/kadu/plugins/data
vmove usr/share/kadu/plugins/translations
}
}
kadu-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/share/cmake
vmove usr/share/kadu/sdk
}
}