1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=meego-sdk-qt-creator
7 pkgdesc='Lightweight integrated development environment (IDE) for Qt'
9 url='http://meego.gitorious.com/meego-developer-tools/qt-creator'
11 depends=('meego-sdk-attica')
12 source=("http://download.meego.com/live/Tools:/SDK:/Host/Trunk/src/${pkgname}-${pkgver}-${_rpmver}.src.rpm")
13 md5sums=('2a213a33365f2320b33474f6f9ac83d8')
17 bunzip2 -d meego-2.1_20110505.patch.bz2
18 bunzip2 -d buildservice_plugin_20110104.patch.bz2
19 tar -zxf qt-creator-${pkgver}-src.tar.gz
21 cd qt-creator-${pkgver}-src
22 patch -p1 -i ../meego-2.1_20110505.patch
23 patch -p1 -i ../buildservice_plugin_20110104.patch
25 export PKG_CONFIG_PATH=/opt/meego/attica/lib/pkgconfig
26 cp -rf src/plugins/qt4projectmanager/qt-maemo/images \
27 src/plugins/qt4projectmanager/qt-meego/
29 cp "${srcdir}"/mtf.png src/plugins/qt4projectmanager/wizards/images/
31 meego-sdk-qmake IDE_LIBRARY_BASENAME=lib
36 cd "${srcdir}"/qt-creator-${pkgver}-src
37 export LD_LIBRARY_PATH=/opt/meego/meego-sdk-qt/lib/:$LD_LIBRARY_PATH
38 export QT_PLUGIN_PATH=/opt/meego/meego-sdk-qt/lib/qt4/plugins
40 make INSTALL_ROOT="${pkgdir}"/opt/meego/${pkgname} install
42 install -D -p -m755 "${srcdir}"/meego-sdk-qtcreator.sh \
43 "${pkgdir}"/opt/meego/${pkgname}/bin/meego-sdk-qtcreator
45 mkdir -p "${pkgdir}"/opt/meego/"${pkgname}"/share/mime/packages
46 cp -a "${srcdir}"/Nokia-QtCreator.xml "${pkgdir}"/opt/meego/"${pkgname}"/share/mime/packages/
47 mkdir -p "${pkgdir}"/opt/meego/"${pkgname}"/share/applications
48 cp -a "${srcdir}"/qtcreator.desktop "${pkgdir}"/opt/meego/"${pkgname}"/share/applications/
50 mkdir -p "${pkgdir}"/usr/bin
51 mkdir -p "${pkgdir}"/usr/share/mime/packages
52 mkdir -p "${pkgdir}"/usr/share/applications
53 mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname}/
54 ln -sf /opt/meego/${pkgname}/bin/meego-sdk-creator \
55 "${pkgdir}"/usr/bin/meego-sdk-qtcreator
56 ln -sf /opt/meego/${pkgname}/share/mime/packages/Nokia-QtCreator.xml \
57 "${pkgdir}"/usr/share/mime/packages/meego-Nokia-QtCreator.xml
58 ln -sf /opt/meego/${pkgname}/share/applications/qtcreator.desktop \
59 "${pkgdir}"/usr/share/applications/meego-sdk-qtcreator.desktop
61 ln -sf /opt/meego/${pkgname}/qtcreator/gdbmacros/LGPL_EXCEPTION.TXT \
62 "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE