summaryrefslogtreecommitdiff
path: root/libre/qtcreator/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-03-08 01:50:41 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-03-08 01:58:48 -0300
commit557dd722e1775c33fc4890b409c6aa2664d26372 (patch)
treea90c805e9234366242d1defb809ef8cccce9c67a /libre/qtcreator/PKGBUILD
parent3c67d59b88ecdbc3d6fcd9e75a2e0f37b40728f4 (diff)
downloadabslibre-557dd722e1775c33fc4890b409c6aa2664d26372.tar.gz
abslibre-557dd722e1775c33fc4890b409c6aa2664d26372.tar.bz2
abslibre-557dd722e1775c33fc4890b409c6aa2664d26372.zip
qtcreator: move package from [libre-testing] to [libre]
Diffstat (limited to 'libre/qtcreator/PKGBUILD')
-rw-r--r--libre/qtcreator/PKGBUILD64
1 files changed, 64 insertions, 0 deletions
diff --git a/libre/qtcreator/PKGBUILD b/libre/qtcreator/PKGBUILD
new file mode 100644
index 000000000..994c79e47
--- /dev/null
+++ b/libre/qtcreator/PKGBUILD
@@ -0,0 +1,64 @@
+# $Id: PKGBUILD 289773 2017-03-01 21:35:05Z svenstaro $
+# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor (Arch): Imanol Celaya <ornitorrincos@archlinux-es.org>
+# Contributor (Arch): Lukas Jirkovsky <l.jirkovsky@gmail.com>
+# Contributor (Arch): Dan Vratil <progdan@progdansoft.com>
+# Contributor (Arch): thotypous <matiasΘarchlinux-br·org>
+# Contributor (Arch): delor <bartekpiech gmail com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=qtcreator
+pkgver=4.2.1
+_pkgver=v4.2.1
+pkgrel=3.parabola1
+pkgdesc='Lightweight, cross-platform integrated development environment, without nonfree qt5-webengine support'
+arch=('i686' 'x86_64')
+url='http://qt-project.org'
+license=('LGPL')
+depends=('qt5-tools' 'qt5-declarative' 'qt5-script' 'qt5-quickcontrols' 'qt5-quickcontrols2' 'clang' 'qbs')
+makedepends=('git' 'mesa' 'llvm')
+options=('docs')
+optdepends=('qt5-doc: integrated Qt documentation'
+ 'qt5-examples: welcome page examples'
+ 'qt5-translations: for other languages'
+ 'gdb: debugger'
+ 'cmake: cmake project support'
+ 'openssh-askpass: ssh support'
+ 'git: git support'
+ 'mercurial: mercurial support'
+ 'bzr: bazaar support'
+ 'valgrind: analyze support')
+source=("http://download.qt.io/official_releases/qtcreator/4.2/${pkgver}/qt-creator-opensource-src-${pkgver}.tar.xz"
+ 'libre.patch')
+sha512sums=('3135b64a36240bffe41c1373d5e5d5327cfa556f42eb339afcacf2f8d294843b96269269417ab262ba8292e28a57472c78ab7ff4686f0360616a4014c75809e9'
+ '57dd505e183661463567b6a7711a7b58f1d5e5b6ecc808acbae4df78366ed3d08be9eb04f6883ad8fd15318c826645e655e7028136b16a801e0084d3a2b51b2a')
+
+prepare() {
+ cd $srcdir/qt-creator-opensource-src-$pkgver
+ patch -p1 -i ../libre.patch
+ rm -rv src/plugins/help/webenginehelpviewer.{cpp,h}
+}
+
+build() {
+ [[ -d build ]] && rm -r build
+ mkdir build && cd build
+
+ LLVM_INSTALL_DIR=/usr QBS_INSTALL_DIR=/usr qmake QMAKE_CFLAGS_ISYSTEM=-I CONFIG+=journald -r ../qt-creator-opensource-src-${pkgver}/qtcreator.pro
+ make
+ make docs -j1
+}
+
+package() {
+ cd 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}/qt-creator-opensource-src-${pkgver}/LICENSE.GPL3-EXCEPT ${pkgdir}/usr/share/licenses/qtcreator/LICENSE.GPL3-EXCEPT
+}