qt5-doc/generate-qt-doc.sh
Helio Chissini de Castro 63a529f896 - New package
2017-05-10 19:05:49 +02:00

58 lines
1.8 KiB
Bash
Executable File

#!/bin/bash -x
# Clone full qt tree
git clone -b 5.9 git://code.qt.io/qt/qt5.git
# Install fedora deps for qt5-qtbase
sudo dnf builddep qt5-qtbase
# Configure using fedora configure basic options
cd qt5 || return
git submodule foreach "git checkout 5.9"
git submodule foreach "git fetch"
git submodule foreach "git pull"
# Init the base source
./init-repository
./configure -confirm-license -opensource -prefix $(rpm --eval "%{_qt5_prefix}") \
-archdatadir $(rpm --eval "%{_qt5_archdatadir}") -bindir $(rpm --eval "%{_qt5_bindir}") \
-libdir $(rpm --eval "%{_qt5_libdir}") -libexecdir $(rpm --eval "%{_qt5_libexecdir}") \
-datadir $(rpm --eval "%{_qt5_datadir}") -docdir $(rpm --eval "%{_qt5_docdir}") \
-examplesdir $(rpm --eval "%{_qt5_examplesdir}") -headerdir $(rpm --eval "%{_qt5_headerdir}") \
-importdir $(rpm --eval "%{_qt5_importdir}") -plugindir $(rpm --eval "%{_qt5_plugindir}") \
-sysconfdir $(rpm --eval "%{_qt5_sysconfdir}") -translationdir $(rpm --eval "%{_qt5_translationdir}") \
-platform linux-g++ -release -shared -accessibility -dbus-runtime -fontconfig -glib -gtk \
-icu -journald -nomake examples -nomake tests -no-rpath -no-separate-debug-info -no-strip \
-system-libjpeg -system-libpng -system-zlib -no-directfb
make qmake_all
pushd qtbase
make $(rpm --eval '%{_smp_mflags}') || exit
popd
pushd qtdeclarative/src
make $(rpm --eval '%{_smp_mflags}') sub-qmldevtools
popd
pushd qttools/src/
make $(rpm --eval '%{_smp_mflags}') sub-qdoc sub-qtattributionsscanner
popd
pushd qttools/src/assistant
make $(rpm --eval '%{_smp_mflags}') sub-qhelpgenerator
popd
make docs
# Install docs on tmp directory
DEST=${PWD}/install
mkdir -p ${DEST}
make INSTALL_ROOT=${DEST} install_docs
cd ${DEST}
tar cfJ ../qt-doc-opensource-src-5.9.0.tar.xz .