2014-06-14 00:11:32 +08:00
|
|
|
# Maintainer: Manuel 'UtG' <utg[dot]chakra.linux[at]gmail[dot]com>
|
2010-06-01 03:21:31 +08:00
|
|
|
|
|
|
|
pkgname=qtcreator
|
2015-02-25 07:59:42 +08:00
|
|
|
pkgver=3.3.1
|
|
|
|
_pkgver=v3.3.1
|
2014-09-15 21:47:38 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='Lightweight, cross-platform integrated development environment'
|
2012-12-31 04:23:09 +08:00
|
|
|
arch=('x86_64')
|
2014-09-15 21:47:38 +08:00
|
|
|
url='http://qt-project.org'
|
2010-06-01 03:21:31 +08:00
|
|
|
license=('LGPL')
|
2014-09-15 21:47:38 +08:00
|
|
|
depends=('qt5-quick1' 'qt5-tools' 'qt5-quickcontrols' 'libxkbcommon')
|
|
|
|
makedepends=('git' 'mesa' 'clang')
|
|
|
|
options=('docs')
|
|
|
|
optdepends=('qt5-doc: for the integrated Qt documentation'
|
2011-09-30 03:24:36 +08:00
|
|
|
'gdb: for the debugger'
|
2014-09-15 21:47:38 +08:00
|
|
|
'cmake: for cmake project support'
|
|
|
|
'openssh-askpass: for ssh support'
|
2011-09-30 03:24:36 +08:00
|
|
|
'git: for git support'
|
|
|
|
'mercurial: for mercurial support'
|
2013-05-28 02:51:52 +08:00
|
|
|
'bzr: for bazaar support'
|
2014-09-15 21:47:38 +08:00
|
|
|
'clang: Clang code model'
|
2013-05-28 02:51:52 +08:00
|
|
|
'valgrind: for analyze support')
|
2014-06-08 14:26:18 +08:00
|
|
|
install=qtcreator.install
|
2014-09-15 21:47:38 +08:00
|
|
|
source=("git://gitorious.org/qt-creator/qt-creator.git#tag=${_pkgver}"
|
|
|
|
"git://gitorious.org/qt-labs/qbs.git"
|
|
|
|
'qtcreator.desktop')
|
|
|
|
md5sums=('SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'5aa242e0262fa22f75c3b59d3a4ec198')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd qt-creator
|
|
|
|
git submodule init
|
|
|
|
git config submodule.qbs.url $srcdir/qbs
|
|
|
|
git submodule update
|
|
|
|
}
|
2010-06-01 03:21:31 +08:00
|
|
|
|
|
|
|
build() {
|
2014-06-08 14:26:18 +08:00
|
|
|
[[ -d build ]] && rm -r build
|
|
|
|
mkdir build && cd build
|
2010-10-04 10:00:59 +08:00
|
|
|
|
2014-09-15 21:47:38 +08:00
|
|
|
LLVM_INSTALL_DIR=/usr qmake-qt5 -r ../qt-creator/qtcreator.pro
|
2013-05-28 02:51:52 +08:00
|
|
|
make
|
|
|
|
make docs -j1
|
2010-10-04 10:00:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2014-09-15 21:47:38 +08:00
|
|
|
cd build
|
2010-10-04 10:00:59 +08:00
|
|
|
|
2014-09-15 21:47:38 +08:00
|
|
|
make INSTALL_ROOT="${pkgdir}/usr/" install
|
2013-05-28 02:51:52 +08:00
|
|
|
make INSTALL_ROOT="${pkgdir}/usr/" install_docs
|
2010-10-04 10:00:59 +08:00
|
|
|
|
2014-09-15 21:47:38 +08:00
|
|
|
# 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/LGPL_EXCEPTION.TXT ${pkgdir}/usr/share/licenses/qtcreator/LGPL_EXCEPTION.TXT
|
2010-06-01 03:21:31 +08:00
|
|
|
}
|