desktop/qtcreator/PKGBUILD

58 lines
1.8 KiB
Bash
Raw Normal View History

2010-06-02 03:45:06 +08:00
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2010-06-01 03:21:31 +08:00
pkgname=qtcreator
pkgver=1.3.1
pkgrel=1
_qtver=4.6.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.6.2-1')
optdepends=('qt-doc: for the integrated Qt documentation'
'gdb: for the debugger')
options=(docs)
source=("http://get.qt.nokia.com/qtcreator/qt-creator-${pkgver}-src.tar.gz"
"ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${_qtver}.tar.gz"
paths.patch
qtcreator.desktop
qtcreator)
md5sums=('bc5d64922a292cdccb5f9e5e1a33575e'
'eb651ee4b157c01696aa56777fc6e0e5'
'68663f1fa9fe5bb3825b28ac02a41eed'
'2c3ffbd66845b37be9804f2966815a10'
'53a02595008d842ca30c828640eb8f0c')
build() {
cd "${srcdir}/qt-everywhere-opensource-src-${_qtver}"
touch ".qmake.cache"
cd "${srcdir}/qt-creator-${pkgver}-src"
patch -Np1 -i ${srcdir}/paths.patch
export QTDIR="${srcdir}/qt-everywhere-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
}