void-packages/srcpkgs/kdevelop/template

54 lines
1.8 KiB
Bash

# Template file for 'kdevelop'
pkgname=kdevelop
version=24.05.1
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF
-DMEINPROC5_EXECUTABLE=/usr/bin/meinproc5"
hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools qt5-tools
kcmutils kcoreaddons kdevelop-pg-qt plasma-framework kwallet gettext tar which"
makedepends="apr-util-devel llvm17-devel grantlee5-devel kcmutils-devel
kdevelop-pg-qt clang-tools-extra
kitemmodels-devel knewstuff-devel knotifyconfig-devel krunner-devel
ktexteditor-devel libkomparediff2-devel okteta-devel
purpose-devel qt5-location-devel qt5-webchannel-devel subversion-devel
qt5-devel $(vopt_if webengine 'qt5-webengine-devel' 'qt5-webkit-devel')"
# makedepends+=" libksysguard-devel"
# khelpcenter is required to display documentation
depends="khelpcenter"
short_desc="Integrated Development Environment for C/C++"
maintainer="yopito <pierre.bourgin@free.fr>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://www.kdevelop.org/"
changelog="https://kde.org/announcements/changelogs/gear/${version}/#kdevelop"
distfiles="${KDE_SITE}/release-service/${version}/src/kdevelop-${version}.tar.xz"
checksum=f6113f10242bb65662ddb76c7b725bb71e23bcdf19eb80e041f39d4d6c97f3b6
build_options="webengine"
desc_option_webengine="Use Qt5 WebEngine for documentation"
if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then
if [ "$XBPS_TARGET_WORDSIZE" = "$XBPS_WORDSIZE" ]; then
build_options_default="webengine"
fi
fi
case "$XBPS_TARGET_MACHINE" in
x86_64*|aarch64*)
makedepends+=" libomp-devel" ;;
esac
post_install() {
vdoc "${FILESDIR}/README.voidlinux"
}
kdevelop-devel_package() {
depends="kdevelop>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
# avoid libkdevcmakecommon.so
vmove "usr/lib/libKDevPlatform*.so"
}
}