Blame docker-builder-data/build/script/packet/qt-5.7.sh

69b66f
DEPS="xcbfull-1.12"
1b5f3d
1b5f3d
PK_DIRNAME="qt-everywhere-opensource-src-5.7.0"
e14835
PK_ARCHIVE="$PK_DIRNAME.tar.gz"
e14835
PK_URL="http://download.qt.io/official_releases/qt/5.7/5.7.0/single/$PK_ARCHIVE"
1b5f3d
e14835
source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh
e14835
source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh
1b5f3d
1b5f3d
pkbuild() {
e14835
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
e14835
    
e14835
	if ! check_packet_function $NAME build.cunfigure; then
e14835
    	if ! ./configure -prefix "$INSTALL_PACKET_DIR" -opensource -confirm-license -no-compile-examples -nomake examples; then
e14835
    		return 1
e14835
    	fi
e14835
		set_done $NAME build.cunfigure
e14835
    fi
e14835
    
dd482a
    # making in single thread is too slow, but life is too short...
dd482a
	if ! (make -j${THREADS} || make -j${THREADS} || make); then
1b5f3d
        return 1
1b5f3d
    fi
1b5f3d
}
1b5f3d
1b5f3d
pkinstall() {
e14835
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
1b5f3d
    if ! make install; then
1b5f3d
        return 1
1b5f3d
    fi
e14835
    
e14835
cat << EOF > "$INSTALL_PACKET_DIR/bin/qt.conf"
e14835
[Paths]
e14835
Prefix=..
e14835
EOF
e14835
e14835
    if [ ! $? -eq 0 ]; then
e14835
        return 1
e14835
	fi
1b5f3d
}