mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
60 lines
2.0 KiB
Bash
60 lines
2.0 KiB
Bash
pkgname=qtcreator
|
|
pkgver=4.2.0
|
|
_pkgver=4.2
|
|
pkgrel=1
|
|
pkgdesc='Lightweight, cross-platform integrated development environment'
|
|
arch=('x86_64')
|
|
url='https://www.qt.io'
|
|
license=('LGPL')
|
|
depends=('qt5-tools' 'qt5-declarative' 'qt5-script' 'qt5-quickcontrols' 'qt5-webkit' 'gnutls' 'qbs')
|
|
makedepends=('git' 'mesa' 'llvm' 'clang')
|
|
options=('docs')
|
|
optdepends=('qt5-doc: for the integrated Qt documentation'
|
|
'qt5-examples: welcome page examples'
|
|
'gdb: for the debugger'
|
|
'cmake: for cmake project support'
|
|
'openssh-askpass: for ssh support'
|
|
'git: for git support'
|
|
'mercurial: for mercurial support'
|
|
'bzr: for bazaar support'
|
|
'clang: Clang code model'
|
|
'valgrind: for analyze support')
|
|
install=${pkgname}.install
|
|
source=("http://download.qt.io/official_releases/${pkgname}/${_pkgver}/${pkgver}/qt-creator-opensource-src-${pkgver}.tar.gz"
|
|
'qtcreator.desktop')
|
|
md5sums=('bb824a341888f0652598456fb15a16e0'
|
|
'5aa242e0262fa22f75c3b59d3a4ec198')
|
|
|
|
prepare() {
|
|
cd ${srcdir}/qt-creator-opensource-src-${pkgver}
|
|
|
|
[[ -d build ]] && rm -r build
|
|
mkdir build
|
|
|
|
rm -rfv src/shared/qbs
|
|
}
|
|
|
|
build() {
|
|
cd ${srcdir}/qt-creator-opensource-src-${pkgver}/build
|
|
|
|
LLVM_INSTALL_DIR=/usr qmake-qt5 CONFIG+=journald -r ../qtcreator.pro
|
|
make
|
|
make docs -j1
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/qt-creator-opensource-src-${pkgver}/build
|
|
|
|
make INSTALL_ROOT="${pkgdir}/usr/" install
|
|
make INSTALL_ROOT="${pkgdir}/usr/" install_docs
|
|
|
|
# Workaround for FS#40583
|
|
mv "${pkgdir}"/usr/bin/qtcreator "${pkgdir}"/usr/bin/qtcreator-bin
|
|
echo "#!/bin/sh" > "${pkgdir}"/usr/bin/qtcreator
|
|
echo "QT_LOGGING_TO_CONSOLE=1 qtcreator-bin \$@" >> "${pkgdir}"/usr/bin/qtcreator
|
|
chmod +x "${pkgdir}"/usr/bin/qtcreator
|
|
|
|
install -Dm644 ${srcdir}/qtcreator.desktop ${pkgdir}/usr/share/applications/qtcreator.desktop
|
|
install -Dm644 ${srcdir}/qt-creator-opensource-src-${pkgver}/LICENSE.GPL3-EXCEPT ${pkgdir}/usr/share/licenses/qtcreator/LICENSE.GPL3-EXCEPT
|
|
}
|