desktop/qtcreator/PKGBUILD

58 lines
1.5 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
2011-03-01 20:59:24 +08:00
pkgver=2.1.0
pkgrel=1
_qtver=4.7.1
2010-06-01 03:21:31 +08:00
pkgdesc="Lightweight, cross-platform integrated development environment"
arch=('i686' 'x86_64')
url="http://trolltech.com/developer/qt-creator"
license=('LGPL')
makedepends=()
2010-10-04 10:00:59 +08:00
depends=('qt>=4.7.')
2010-06-01 03:21:31 +08:00
optdepends=('qt-doc: for the integrated Qt documentation'
'gdb: for the debugger')
options=(docs)
2010-10-04 10:00:59 +08:00
source=("http://get.qt.nokia.com/qtcreator/qt-creator-${pkgver}-src.zip"
2010-06-01 03:21:31 +08:00
"ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${_qtver}.tar.gz"
2010-10-04 10:00:59 +08:00
qtcreator.desktop)
2011-03-01 20:59:24 +08:00
md5sums=('a6e48b4347314fb2a92b77f40b4fc9a5'
'6f88d96507c84e9fea5bf3a71ebeb6d7'
2010-10-04 10:00:59 +08:00
'2c3ffbd66845b37be9804f2966815a10')
2010-06-01 03:21:31 +08:00
build() {
export QTDIR="${srcdir}/qt-everywhere-opensource-src-${_qtver}"
2010-10-04 10:00:59 +08:00
export QTCREATOR_WITH_QML=1
2010-06-01 03:21:31 +08:00
if [ -d ${srcdir}/build ]; then
2010-10-04 10:00:59 +08:00
rm -rf ${srcdir}/build
2010-06-01 03:21:31 +08:00
fi
2010-10-04 10:00:59 +08:00
2010-06-01 03:21:31 +08:00
mkdir ${srcdir}/build
cd ${srcdir}/build
2010-10-04 10:00:59 +08:00
qmake ${srcdir}/qt-creator-${pkgver}-src/qtcreator.pro
make
}
package() {
cd ${srcdir}/build
make INSTALL_ROOT="${pkgdir}/usr/" install
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
2010-06-01 03:21:31 +08:00
}
2010-10-04 10:00:59 +08:00