updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / meego-sdk-qt-creator / PKGBUILD
bloba23bbbe0355e4407dd0ad2992346e02dada5f3a6
1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=meego-sdk-qt-creator
4 pkgver=2.1.0
5 pkgrel=2
6 _rpmver=3.5
7 pkgdesc='Lightweight integrated development environment (IDE) for Qt'
8 arch=('i686' 'x86_64')
9 url='http://meego.gitorious.com/meego-developer-tools/qt-creator'
10 license=('LGPL2.1')
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')
15 build() {
16   cd "${srcdir}"
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
32   make -j4
35 package() {
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
44   
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