27e904d043
QtCreator comes with GPL-3.0-only plus an annotation called the Qt Company GPL Exception 1.0, which permits projects created with QtCreator to choose the license they desire. Thus install the license file which includes the annotation and the GPL-3.0. Also enable building the ClangCodeModel plugin by adding llvm and clang to the hostdepends. Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
63 lines
2.6 KiB
Bash
63 lines
2.6 KiB
Bash
# Template file for 'qtcreator'
|
|
pkgname=qtcreator
|
|
version=4.6.1
|
|
revision=1
|
|
wrksrc=qt-creator-opensource-src-${version}
|
|
build_style=qmake
|
|
make_install_args="INSTALL_ROOT=\${DESTDIR}/usr"
|
|
hostmakedepends="clang llvm perl pkg-config python"
|
|
makedepends="qt5-declarative-devel qt5-script-devel qt5-tools-devel"
|
|
depends="qt5-declarative-devel qt5-quickcontrols qt5-plugin-sqlite"
|
|
nocross="Requires system botan-devel-1.10 for the target architecture"
|
|
short_desc="A cross-platform IDE for Qt developers"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="GPL-3.0-only,QtCompany-GPL-Exception-1.0"
|
|
homepage="https://wiki.qt.io/Category:Tools::QtCreator"
|
|
distfiles="https://download.qt.io/official_releases/qtcreator/${version%.*}/${version}/${wrksrc}.tar.xz"
|
|
checksum=e74dce61becc2a97199ff4a0e50a148e4dbafb6572587212323c470d70c137da
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-qmake qt5-host-tools qt5-script-devel qt5-tools-devel"
|
|
fi
|
|
|
|
do_build() {
|
|
# Note: A simple "make ${makejobs}" fails after libs because
|
|
# of files being removed and symlinked asynchronously.
|
|
# Fix this parallel build issue by first sequentially making subdirs
|
|
cd src
|
|
for _target in libs app plugins tools; do
|
|
make ${makejobs} ${make_build_args} ${_target}
|
|
done
|
|
cd ..
|
|
# ... and eventually make using the main Makefile
|
|
make ${makejobs} ${make_build_args}
|
|
}
|
|
|
|
post_install() {
|
|
# Install the desktop file
|
|
vinstall ${FILESDIR}/qtcreator.desktop \
|
|
644 usr/share/applications
|
|
# Install the license with the annotation for
|
|
# the Qt Company GPL Exception 1.0
|
|
vlicense LICENSE.GPL3-EXCEPT
|
|
}
|
|
|
|
qtcreator-full_package() {
|
|
short_desc+=" - full Qt5 dependencies"
|
|
depends="${sourcepkg}>=${version}_${revision}
|
|
qt5-3d-devel qt5-canvas3d qt5-charts-devel qt5-connectivity-devel qt5-datavis3d-devel
|
|
qt5-declarative-devel qt5-datavis3d-devel qt5-gamepad-devel qt5-location-devel
|
|
qt5-multimedia-devel qt5-networkauth-devel qt5-purchasing-devel qt5-quickcontrols
|
|
qt5-quickcontrols2-devel qt5-remoteobjects-devel qt5-script-devel qt5-scxml-devel
|
|
qt5-sensors-devel qt5-serialbus-devel qt5-serialport-devel qt5-speech-devel qt5-svg-devel
|
|
qt5-tools-devel qt5-virtualkeyboard-devel qt5-wayland-devel qt5-webchannel-devel
|
|
qt5-webengine-devel qt5-webglplugin-devel qt5-websockets-devel qt5-webview-devel
|
|
qt5-x11extras-devel qt5-xmlpatterns-devel qt5-tools-devel qt5-doc qt5-host-tools
|
|
qt5-examples qt5-imageformats qt5-graphicaleffects qt5-translations
|
|
qt5-plugin-mysql qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds
|
|
qt5-webkit-devel"
|
|
build_style=meta
|
|
pkg_install() {
|
|
echo "Just the dependencies"
|
|
}
|
|
}
|