mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
57 lines
1.9 KiB
Bash
57 lines
1.9 KiB
Bash
pkgname=qtcreator
|
|
pkgver=4.0.1
|
|
_pkgver=4.0
|
|
pkgrel=1
|
|
pkgdesc='Lightweight, cross-platform integrated development environment'
|
|
arch=('x86_64')
|
|
url='http://qt-project.org'
|
|
license=('LGPL')
|
|
depends=('qt5-quick1' 'qt5-tools' 'qt5-quickcontrols' 'gnutls' 'qbs')
|
|
makedepends=('git' 'mesa' '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=('a3db04324402b732eff43f97bbb7f210'
|
|
'5aa242e0262fa22f75c3b59d3a4ec198')
|
|
|
|
build() {
|
|
cd ${srcdir}/qt-creator-opensource-src-${pkgver}
|
|
|
|
[[ -d build ]] && rm -r build
|
|
mkdir build && cd 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
|
|
|
|
# Split qbs to its package
|
|
rm -f ${pkgdir}/usr/bin/qbs*
|
|
}
|