void-packages/srcpkgs/qtcreator/template

64 lines
2.7 KiB
Bash

# Template file for 'qtcreator'
pkgname=qtcreator
version=4.3.1
revision=1
wrksrc=qt-creator-opensource-src-${version}
build_style=qmake
make_install_args="INSTALL_ROOT=\${DESTDIR}/usr"
hostmakedepends="perl python pkg-config"
makedepends="qt5-declarative-devel qt5-script-devel qt5-tools-devel"
depends="qt5-declarative-devel qt5-quickcontrols qt5-plugin-sqlite"
nocross="Requires system botan-devel for the target architecture"
short_desc="A cross-platform IDE for Qt developers"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="LGPL-2.1"
homepage="http://wiki.qt.io/Category:Tools::QtCreator"
distfiles="http://download.qt.io/official_releases/qtcreator/${version%.*}/${version}/${wrksrc}.tar.gz"
checksum=db43c796adf11f02fd22d01820678cd118fc5bd9a7bb5d2d76ed0f86e0dd8a69
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
# Extract and install shared-mime-info files for qmake and cmake projects
cat src/plugins/qmakeprojectmanager/QmakeProjectManager.json | \
awk '/ "$/{found=0} {if (found) print} /"Mimetypes"/{found=1}' | \
sed -e's;^ ;;' \
> QmakeProjectManager.mimetypes.xml
vinstall QmakeProjectManager.mimetypes.xml 644 usr/share/mime/packages
cat src/plugins/cmakeprojectmanager/CMakeProjectManager.json | \
awk '/ "$/{found=0} {if (found) print} /"Mimetypes"/{found=1}' | \
sed -e's;^ ;;' \
> CMakeProjectManager.mimetypes.xml
vinstall CMakeProjectManager.mimetypes.xml 644 usr/share/mime/packages
}
qtcreator-full_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - full Qt5 dependencies"
depends+="
qt5-3d-devel qt5-canvas3d qt5-connectivity-devel qt5-charts-devel qt5-declarative-devel
qt5-datavis3d-devel qt5-gamepad-devel qt5-graphicaleffects qt5-location-devel
qt5-multimedia-devel qt5-script-devel qt5-scxml-devel qt5-sensors-devel qt5-serialbus-devel
qt5-serialport-devel qt5-svg-devel qt5-tools-devel qt5-virtualkeyboard-devel qt5-wayland-devel
qt5-webchannel-devel qt5-webengine-devel qt5-webkit-devel qt5-websockets-devel
qt5-x11extras-devel qt5-xmlpatterns-devel qt5-tools-devel qt5-doc qt5-examples
qt5-plugin-mysql qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds"
build_style=meta
pkg_install() {
echo "Just the dependencies"
}
}