Skip to content

Instantly share code, notes, and snippets.

@Lewiscowles1986
Last active December 31, 2017 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lewiscowles1986/b2250b8ca9b68fd19df3781a05da9a33 to your computer and use it in GitHub Desktop.
Save Lewiscowles1986/b2250b8ca9b68fd19df3781a05da9a33 to your computer and use it in GitHub Desktop.
Compile Wine Release Candidate
#!/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