: # build scribus15 with Scripter2 set -x scribus=scribus15s2 mkdir -p /u/gnu/$scribus cd /u/gnu/$scribus if [ ! -d Scribus ] ; then svn co svn://scribus.net/trunk/Scribus ; fi # First time cd /u/gnu/$scribus/Scribus # svn update # following times if you want to rebuild with updated source cd /u/gnu/$scribus # rm -rf build # exit mkdir -p build cd build export QT_SELECT=qt5 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/lib64/qt5/lib/pkgconfig case ":${PATH}:" in *:/usr/lib64/qt5/bin:*) echo qt5 on path ;; *) export PATH="/usr/lib64/qt5/bin:$PATH" ;; esac case ":${PATH}:" in *:/usr/local/bin:*) echo local bin on path ;; *) export PATH="/usr/local/bin:$PATH" ;; esac if [ -f Makefile ] then echo "$0: Makefile found. Not re-running cmake." else cmake -DCMAKE_INSTALL_PREFIX:PATH=/u/gnu/${scribus}bin \ -DQT_PREFIX=/usr/lib64/qt5 -DWANT_SCRIPTER2=1 -DWANT_DEBUG=1 -DWANT_GRAPHICSMAGICK=1 -DWANT_VERSIONING=1 -DCMAKE_BUILD_TYPE=Debug ../Scribus fi nohup make make install