fune/taskcluster/scripts/misc/build-wine.sh
Mike Hommey 340788143e Bug 1632693 - Upgrade wine to 5.0. r=rstewart
It requires a newer version of bison to build, which we get by using a
more recent version of Debian for the toolchain build (Debian 9 being
the version we use for the builds that depend on wine, so it will work
there).

Differential Revision: https://phabricator.services.mozilla.com/D72254
2020-04-25 21:02:23 +00:00

29 lines
633 B
Bash
Executable file

#!/bin/bash
set -x -e -v
WORKSPACE=$HOME/workspace
INSTALL_DIR=$WORKSPACE/wine
mkdir -p $INSTALL_DIR
mkdir -p $WORKSPACE/build/wine
mkdir -p $WORKSPACE/build/wine64
cd $WORKSPACE/build/wine64
$MOZ_FETCHES_DIR/wine-5.0/configure --enable-win64 --without-x --without-freetype --prefix=$INSTALL_DIR/
make -j$(nproc)
cd $WORKSPACE/build/wine
$MOZ_FETCHES_DIR/wine-5.0/configure --with-wine64=../wine64 --without-x --without-freetype --prefix=$INSTALL_DIR/
make -j$(nproc)
make install
cd $WORKSPACE/build/wine64
make install
# --------------
cd $WORKSPACE/
tar caf wine.tar.xz wine
mkdir -p $UPLOAD_DIR
cp wine.tar.* $UPLOAD_DIR