diff options
Diffstat (limited to 'wine/build/wine.SlackBuild')
-rwxr-xr-x | wine/build/wine.SlackBuild | 66 |
1 files changed, 18 insertions, 48 deletions
diff --git a/wine/build/wine.SlackBuild b/wine/build/wine.SlackBuild index 4714015f..ecca8fa8 100755 --- a/wine/build/wine.SlackBuild +++ b/wine/build/wine.SlackBuild @@ -74,6 +74,8 @@ # * Update. # 0.9.51-1: 19/dec/2007 by Eric Hameleers <alien@slackware.com> # * Update. +# 0.9.52-1: 30/dec/2007 by Eric Hameleers <alien@slackware.com> +# * Update. # # Run 'sh wine.SlackBuild --cleanup' to build a Slackware package. # The package (.tgz) plus descriptive .txt file are created in /tmp . @@ -81,11 +83,10 @@ # # ----------------------------------------------------------------------------- -# --- INIT --- # Set initial variables: PRGNAM=wine -VERSION=${VERSION:-"0.9.51"} +VERSION=${VERSION:-"0.9.52"} ARCH=${ARCH:-"i486"} BUILD=${BUILD:-1} @@ -96,7 +97,7 @@ DOCS="ANNOUNCE AUTHORS COPYING.LIB ChangeLog LICENSE* README VERSION" OPENGL=${OPENGL:-"YES"} # Use 'YES' not 'yes' : case-sensitive! # If you set REQUIRE_FONTFORGE to "NO" then the script won't refuse to build -# wine in case you don't have fontforge installed (needed basically to +# wine in case you don't have fontforge installed (it is needed to # generate the required base fonts). REQUIRE_FONTFORGE=${REQUIRE_FONTFORGE:-"YES"} @@ -152,39 +153,22 @@ case "$ARCH" in ;; esac -if [ ! -d $TMP/tmp-$PRGNAM ]; then - mkdir -p $TMP/tmp-$PRGNAM # location to build the source -elif [ "$P1" != "--oldbuild" ]; then - # If the "--oldbuild" parameter is present, we keep - # the old build files and continue; - # By default we remove the remnants of previous build and continue: - rm -rf $TMP/tmp-$PRGNAM/* -fi - -if [ "$PKG" = "" -o "$PKG" = "/" ] ; then - echo "Please provide a sane value for the variable 'PKG'." - exit 1 -elif [ ! -d $PKG ]; then - mkdir -p $PKG # place for the package to be built -else - rm -rf $PKG/* # We always erase old package's contents: -fi - -if [ ! -d $OUTPUT ]; then - mkdir -p $OUTPUT # place for the package to be saved -fi - - -# --- SOURCE FILE AVAILABILITY --- +# Prepare a sane build environment: +mkdir -p $TMP/tmp-$PRGNAM # location to build the source +rm -rf $TMP/tmp-$PRGNAM/* # remove the remnants of previous build and continue +mkdir -p $PKG # place for the package to be built +rm -rf $PKG/* # We always erase old package's contents +mkdir -p $OUTPUT # place for the package to be saved +# Source files availability: if ! [ -f ${SOURCE} ]; then if ! [ "x${SRCURL}" == "x" ]; then # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/`basename $SOURCE`" echo "Source '`basename ${SOURCE}`' not available yet..." echo "Will download file to `dirname $SOURCE`" - wget -nv -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 ]; then + wget -nv -T 30 -O "${SOURCE}" "${SRCURL}" || true + if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then echo "Downloading '`basename ${SOURCE}`' failed... aborting the build." mv -f "${SOURCE}" "${SOURCE}".FAIL exit 1 @@ -251,24 +235,20 @@ CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" \ --${do_opengl}able-opengl \ --program-prefix="" \ --program-suffix="" \ - $ARCH-slackware-linux \ + --build=$ARCH-slackware-linux \ 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log make depend 2>&1 | tee $OUTPUT/make-${PRGNAM}.log make 2>&1 | tee -a $OUTPUT/make-${PRGNAM}.log -# # Install all the needed stuff to the package dir -# # Use installwatch if available: -if `which installwatch > /dev/null 2>&1`; then +if $(which installwatch > /dev/null 2>&1); then installwatch -o $OUTPUT/install-${PRGNAM}.log make DESTDIR=$PKG install else make DESTDIR=$PKG install 2>&1 |tee $OUTPUT/install-${PRGNAM}.log fi - -# --- DOCUMENTATION --- - +# Add some documentation to thre package: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true chmod -R a-w $PKG/usr/doc/$PRGNAM-$VERSION/* @@ -289,14 +269,10 @@ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true cd - - -# --- OWNERSHIP, RIGHTS --- - +# Ownership, rights: chmod -R o-w $PKG - -# --- PACKAGE DESCRIPTION --- - +# Add a package dfescription: mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc if [ -f $SRCDIR/doinst.sh ]; then @@ -306,9 +282,6 @@ if [ -f $SRCDIR/slack-required ]; then cat $SRCDIR/slack-required > $PKG/install/slack-required fi - -# --- BUILDING --- - # Build the package: cd $PKG makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log @@ -320,9 +293,6 @@ if [ -f $PKG/install/slack-required ]; then cat $PKG/install/slack-required > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.dep fi - -# --- CLEANUP --- - # Clean up the extra stuff: if [ "$P1" = "--cleanup" ]; then rm -rf $TMP/tmp-$PRGNAM |