1 # Description: Qt Free Edition
2 # URL: http://www.trolltech.com
3 # Maintainer: Jose V Beneyto, sepen at crux dot nu
4 # Packager: Johannes Winkelmann, jw at smts dot ch
5 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6 # Depends on: fontconfig glib libmng libpng mesa3d xorg-libxcursor xorg-libxi xorg-libxinerama xorg-libxrandr dbus
11 source=(http://download.qt-project.org/official_releases/qt/${version%.*}/$version/qt-everywhere-opensource-src-$version.tar.gz)
14 cd qt-everywhere-opensource-src-$version
16 sed -i 's|X11R6/||g' mkspecs/*/*.conf
18 sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
19 sed -i "s|INSTALLS += translations||" projects.pro
20 sed -i 's|"$COMPILER" -c|$COMPILER -c|' config.tests/unix/fvisibility.test
22 ./configure -prefix /usr/share/qt4 \
23 -bindir /usr/share/qt4/bin \
24 -headerdir /usr/share/qt4/include \
25 -libdir /usr/share/qt4/lib \
26 -plugindir /usr/share/qt4/plugins \
27 -platform linux-g++ -release -shared -sm \
28 -nis -verbose -system-zlib \
29 -system-lib{png,jpeg} -xmlpatterns \
30 -no-{cups,fast,nas-sound,phonon} \
31 -x{cursor,inerama,kb,randr,render} \
32 -nomake demos -nomake examples -nomake docs \
33 -no-separate-debug-info -opensource -confirm-license \
36 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/lib" make
37 make INSTALL_ROOT=$PKG install
39 rm -rf `find $PKG/usr/share/qt4/mkspecs/* | \
40 grep -v linux-g++ | grep -v common | grep -v pri | grep -v features`
41 rm -f $PKG/usr/share/qt4/mkspecs/linux-g++/linux-g++
42 rm -rf $PKG/usr/share/qt4/mkspecs/features/{mac,win32}
43 rm -rf $PKG/usr/share/qt4/mkspecs/common/mac*
44 rm -rf $PKG/usr/share/qt4/phrasebooks
46 install -d $PKG/{etc/ld.so.conf.d,usr/{bin,lib,include}}
47 echo "/usr/share/qt4/lib" > $PKG/etc/ld.so.conf.d/qt4.conf
49 ln -s ../share/qt4/include $PKG/usr/include/qt4
50 ln -s ../share/qt4/lib $PKG/usr/lib/qt4
51 ln -s linux-g++ $PKG/usr/share/qt4/mkspecs/default
53 mv $PKG/usr/share/qt4/lib/pkgconfig $PKG/usr/lib
55 sed -i -e "s|-L$SRC/qt-everywhere-opensource-src-$version/lib ||g" \
56 -e "s|$SRC/qt-everywhere-opensource-src-$version/bin|/usr/share/qt4/bin|g" \
57 $PKG/usr/lib/pkgconfig/*.pc
59 for f in assistant designer linguist lrelease lupdate moc qmake qtconfig uic \
60 pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do
61 ln -s ../share/qt4/bin/$f $PKG/usr/bin/$f