desktop/qtcreator/PKGBUILD

60 lines
2.0 KiB
Bash
Raw Normal View History

2010-06-01 03:21:31 +08:00
pkgname=qtcreator
2017-04-21 20:47:44 +08:00
pkgver=4.2.2
2016-12-15 09:28:46 +08:00
_pkgver=4.2
pkgrel=1
pkgdesc='Lightweight, cross-platform integrated development environment'
2012-12-31 04:23:09 +08:00
arch=('x86_64')
2016-12-15 09:28:46 +08:00
url='https://www.qt.io'
2010-06-01 03:21:31 +08:00
license=('LGPL')
depends=('qt5-tools' 'qt5-declarative' 'qt5-script' 'qt5-quickcontrols' 'qt5-webkit' 'gnutls' 'qbs')
2016-12-15 09:28:46 +08:00
makedepends=('git' 'mesa' 'llvm' 'clang')
options=('docs')
optdepends=('qt5-doc: for the integrated Qt documentation'
2016-05-13 05:01:04 +08:00
'qt5-examples: welcome page examples'
2011-09-30 03:24:36 +08:00
'gdb: for the debugger'
'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'
'clang: Clang code model'
2013-05-28 02:51:52 +08:00
'valgrind: for analyze support')
install=${pkgname}.install
2016-03-30 09:23:46 +08:00
source=("http://download.qt.io/official_releases/${pkgname}/${_pkgver}/${pkgver}/qt-creator-opensource-src-${pkgver}.tar.gz"
'qtcreator.desktop')
2017-04-21 20:47:44 +08:00
md5sums=('c5dad9aa00021112cc12578622c1c1c1'
'5aa242e0262fa22f75c3b59d3a4ec198')
prepare() {
2016-03-30 09:23:46 +08:00
cd ${srcdir}/qt-creator-opensource-src-${pkgver}
2014-06-08 14:26:18 +08:00
[[ -d build ]] && rm -r build
mkdir build
rm -rfv src/shared/qbs
}
build() {
cd ${srcdir}/qt-creator-opensource-src-${pkgver}/build
2010-10-04 10:00:59 +08:00
2016-03-30 09:23:46 +08:00
LLVM_INSTALL_DIR=/usr qmake-qt5 CONFIG+=journald -r ../qtcreator.pro
2013-05-28 02:51:52 +08:00
make
make docs -j1
2010-10-04 10:00:59 +08:00
}
package() {
2016-03-30 09:23:46 +08:00
cd ${srcdir}/qt-creator-opensource-src-${pkgver}/build
2010-10-04 10:00:59 +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
# 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
2016-05-13 05:01:04 +08:00
install -Dm644 ${srcdir}/qt-creator-opensource-src-${pkgver}/LICENSE.GPL3-EXCEPT ${pkgdir}/usr/share/licenses/qtcreator/LICENSE.GPL3-EXCEPT
2010-06-01 03:21:31 +08:00
}