mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
57 lines
1.9 KiB
Bash
57 lines
1.9 KiB
Bash
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
|
|
# Contributor: Dan Vratil <progdan@progdansoft.com>
|
|
# Contributor: thotypous <matiasΘarchlinux-br·org>
|
|
# Contributor: delor <bartekpiech gmail com>
|
|
# Mantainer: Imanol Celaya <ornitorrincos@archlinux-es.org>
|
|
|
|
pkgname=qtcreator
|
|
pkgver=1.2.1
|
|
pkgrel=1
|
|
_qtver=4.5.2
|
|
pkgdesc="Lightweight, cross-platform integrated development environment"
|
|
arch=('i686' 'x86_64')
|
|
url="http://trolltech.com/developer/qt-creator"
|
|
license=('LGPL')
|
|
makedepends=()
|
|
depends=('qt>=4.5')
|
|
optdepends=('qt-doc: for the integrated Qt documentation'
|
|
'gdb: for the debugger')
|
|
options=(docs)
|
|
source=("http://download.qtsoftware.com/qtcreator/qt-creator-${pkgver}-src.tar.gz"
|
|
"ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-${_qtver}.tar.bz2"
|
|
paths.patch
|
|
qtcreator.desktop
|
|
qtcreator)
|
|
md5sums=('4025308096e49dd76946fa4fd8d1b95e'
|
|
'28a7e8ac9805a6f614d2a27ee1a6ac9d'
|
|
'68663f1fa9fe5bb3825b28ac02a41eed'
|
|
'2c3ffbd66845b37be9804f2966815a10'
|
|
'53a02595008d842ca30c828640eb8f0c')
|
|
|
|
build() {
|
|
cd "${srcdir}/qt-x11-opensource-src-${_qtver}"
|
|
touch ".qmake.cache"
|
|
cd "${srcdir}/qt-creator-${pkgver}-src"
|
|
patch -Np1 -i ${srcdir}/paths.patch
|
|
|
|
export QTDIR="${srcdir}/qt-x11-opensource-src-${_qtver}"
|
|
|
|
if [ -d ${srcdir}/build ]; then
|
|
rm -rf ${srcdir}/build
|
|
fi
|
|
|
|
mkdir ${srcdir}/build
|
|
cd ${srcdir}/build
|
|
mkdir -p share/doc/qtcreator
|
|
touch share/doc/qtcreator/qtcreator.qch
|
|
|
|
qmake ${srcdir}/qt-creator-${pkgver}-src/qtcreator.pro -o Makefile || return 1
|
|
make || return 1
|
|
|
|
make INSTALL_ROOT="${pkgdir}/usr/" install || return 1
|
|
install -Dm755 ${srcdir}/qtcreator ${pkgdir}/usr/bin/qtcreator
|
|
install -Dm644 ${srcdir}/qtcreator.desktop ${pkgdir}/usr/share/applications/qtcreator.desktop
|
|
install -Dm644 ${srcdir}/qt-creator-${pkgver}-src/LGPL_EXCEPTION.TXT ${pkgdir}/usr/share/licenses/qtcreator/LGPL_EXCEPTION.TXT
|
|
}
|
|
|
|
|