Skip to content

Instantly share code, notes, and snippets.

@ntropy83
Created July 15, 2020 20:02
Show Gist options
  • Save ntropy83/124f4d05820688b643c5581edba288ef to your computer and use it in GitHub Desktop.
Save ntropy83/124f4d05820688b643c5581edba288ef to your computer and use it in GitHub Desktop.
build_wine_biarch.sh
#!/bin/sh
##### git clone wine and execute script from srcdir
function build_biarch() {
mkdir build
if [ $? -eq 0 ]; then
cd build
mkdir wine-32 wine-64 $(git describe --tags)
cd wine-64
../../configure --disable-tests --prefix= --with-mingw --enable-win64
make -j$(nproc)
cd ../wine-32
../../configure --disable-tests --prefix= --with-mingw --with-wine64=../wine-64
make -j$(nproc)
make DESTDIR=../$(git describe --tags)/ install
cd ../wine-64
DESTDIR=../$(git describe --tags)/ make install
else
echo "Delete existing build folder first"
exit 1
fi
}
function cleanup () {
cd ..
rm -rf wine-32 wine-64
}
####################
build_biarch
cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment