Created
July 15, 2020 20:02
-
-
Save ntropy83/124f4d05820688b643c5581edba288ef to your computer and use it in GitHub Desktop.
build_wine_biarch.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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