Last active
December 31, 2017 22:01
-
-
Save Lewiscowles1986/b2250b8ca9b68fd19df3781a05da9a33 to your computer and use it in GitHub Desktop.
Compile Wine Release Candidate
This file contains 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 | |
BRANCH="3.0" | |
RELEASE="wine-3.0-rc4" | |
CORECOUNT=`grep -c ^processor /proc/cpuinfo` | |
if [ ! -e "${RELEASE}.tar.xz" ]; then | |
wget "https://dl.winehq.org/wine/source/${BRANCH}/${RELEASE}.tar.xz" | |
else | |
echo "release '${RELEASE}' package already exists" | |
fi | |
if [ ! -d "${RELEASE}" ]; then | |
tar xf "${RELEASE}.tar.xz" | |
else | |
echo "release '${RELEASE}' already unpacked" | |
fi | |
if [ ! -d "${RELEASE}-win64" ]; then | |
mkdir -p "${RELEASE}-win64" | |
cd "${RELEASE}-win64" | |
../${RELEASE}/configure --enable-win64 | |
make -j ${CORECOUNT} | |
cd .. | |
else | |
echo "Skipping 64-bit build" | |
fi | |
if [ ! -d "${RELEASE}-win32" ]; then | |
mkdir -p "${RELEASE}-win32" | |
cd "${RELEASE}-win32" | |
../${RELEASE}/configure --with-wine64="../${RELEASE}-win64" | |
make -j ${CORECOUNT} | |
cd .. | |
else | |
echo "Skipping 32-bit build" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment