35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
# Template file for 'kaccounts-providers'
|
|
pkgname=kaccounts-providers
|
|
version=20.04.2
|
|
revision=2
|
|
build_style=cmake
|
|
hostmakedepends="extra-cmake-modules intltool qt5-qmake qt5-host-tools
|
|
pkg-config kcoreaddons libaccounts-qt5-devel signond-devel"
|
|
makedepends="kparts-devel kaccounts-integration-devel glib-devel
|
|
libaccounts-qt5-devel qt5-location-devel signond-devel"
|
|
short_desc="KDE Accounts Providers"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://cgit.kde.org/kaccounts-providers.git/"
|
|
distfiles="${KDE_SITE}/release-service/${version}/src/kaccounts-providers-${version}.tar.xz"
|
|
checksum=55f424dba565ea71aa653e0361afe8c91cb562f53da21b367c2e975ea0287197
|
|
|
|
build_options="nextcloud"
|
|
desc_option_nextcloud="Build nextcloud support (needs Qt5 WebEngine)"
|
|
|
|
if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then
|
|
if [ "$XBPS_WORDSIZE" = "$XBPS_TARGET_WORDSIZE" ]; then
|
|
build_options_default+=" nextcloud"
|
|
fi
|
|
fi
|
|
|
|
if [ "$build_option_nextcloud" ]; then
|
|
makedepends+=" qt5-webchannel-devel qt5-webengine-devel"
|
|
fi
|
|
|
|
post_extract() {
|
|
if [ -z "$build_option_nextcloud" ]; then
|
|
vsed -i '/find_package/s/ WebEngineWidgets//' CMakeLists.txt
|
|
vsed -i '/nextcloud-ui/d' plugins/CMakeLists.txt
|
|
fi
|
|
}
|