cd qttools-everywhere-src-${surum}
qmake
make
make INSTALL_ROOT=$PKG install

mkdir $PKG/usr/share/applications

cat > $PKG/usr/share/applications/assistant-qt.desktop << "EOf"
[Desktop Entry]
Name=Qt5 Asistan
comment=Qt5 belgelerini ve örneklerini gösterir
Exec=$QT5BINDIR/assistant-qt
icon=assistant-qt
Terminal=false
Encoding=UTf-8
Type=Application
categories=Qt;Development;Documentation;
EOf

cat > $PKG/usr/share/applications/designer-qt.desktop << "EOf"
[Desktop Entry]
Name=Qt5 Designer
GenericName=Arayüz Tasarla
comment=Qt5 uygulamaları için tasarımcı
Exec=$QT5BINDIR/designer-qt
icon=designer-qt
mimeType=application/x-designer;
Terminal=false
Encoding=UTf-8
Type=Application
categories=Qt;Development;
EOf

cat > $PKG/usr/share/applications/linguist-qt.desktop << "EOf"
[Desktop Entry]
Name=Qt5 Dil Ekle
comment=Qt5 uygulamalarına çevirileri ekle
Exec=$QT5BINDIR/linguist-qt
icon=linguist-qt
mimeType=text/vnd.trolltech.linguist;application/x-linguist;
Terminal=false
Encoding=UTf-8
Type=Application
categories=Qt;Development;
EOf

cat > $PKG/usr/share/applications/qdbusviewer-qt.desktop << "EOf"
[Desktop Entry]
Name=Qt5 QDbusviewer
GenericName=D-Bus Hata Ayıkla
comment=DBus uygulamalarında hata ayıklama
Exec=$QT5BINDIR/qdbusviewer-qt
icon=qdbusviewer-qt
Terminal=false
Encoding=UTf-8
Type=Application
categories=Qt;Development;Debugger;
EOf

# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
  find "$PKG/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;