diff options
author | Edinaldo P. Silva | 2016-08-30 12:42:36 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo | 2016-09-03 02:48:57 +0200 |
commit | 4ec7b560bb194b22dc2b9889a906c4ed74184ce7 (patch) | |
tree | 4ca2323b10af01cd48b7742ab19fc51a42a3b461 /system/wine-staging/wine-staging.SlackBuild | |
parent | a07be440e4543efc6eb4f5994736e7950442b620 (diff) | |
download | slackbuilds-4ec7b560bb194b22dc2b9889a906c4ed74184ce7.tar.gz |
system/wine-staging: Updated for version 1.9.17.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/wine-staging/wine-staging.SlackBuild')
-rw-r--r-- | system/wine-staging/wine-staging.SlackBuild | 68 |
1 files changed, 39 insertions, 29 deletions
diff --git a/system/wine-staging/wine-staging.SlackBuild b/system/wine-staging/wine-staging.SlackBuild index 42ef431fbb..329692c673 100644 --- a/system/wine-staging/wine-staging.SlackBuild +++ b/system/wine-staging/wine-staging.SlackBuild @@ -1,14 +1,17 @@ #!/bin/sh - -# Slackware build script for wine-staging - +# +# Slackware build script for wine-staging. +# # Copyright 2015 Gethyn ThomasQuail <gethyn@bloodbathsoftworks.com> +# Copyright 2016 Edinaldo P. Silva, Rio de Janeiro, Brazil. +# # All rights reserved. - +# # Based on: # Wine SlackBuild by David Woodfall Copyright 2011 -# Some elements from Wine Slackbuilds by Eric Hameleers <alien@slackware.com> and Phantom X, Goiania, Brazil - +# Some elements from Wine Slackbuilds by Eric Hameleers < alien@slackware.com > +# and PhantomX, Goiania, Brazil < https://github.com/PhantomX >. +# # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # @@ -27,12 +30,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=wine-staging -VERSION=${VERSION:-1.9.0} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.9.17} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -43,22 +47,23 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -# Default compile options -XORG=${XORG:-YES} -ALSA=${ALSA:-YES} -OSS=${OSS:-NO} -PULSE=${PULSE:-YES} -CUPS=${CUPS:-YES} -DBUS=${DBUS:-YES} -GALLIUM=${GALLIUM:-NO} -OPENAL=${OPENAL:-NO} -OPENGL=${OPENGL:-YES} -JPEG=${JPEG:-NO} -PNG=${PNG:-NO} -MPG123=${MPG123:-NO} - -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +# Default compile options: + + XORG=${XORG:-YES} + ALSA=${ALSA:-YES} + OSS=${OSS:-NO} + PULSE=${PULSE:-YES} + CUPS=${CUPS:-YES} + DBUS=${DBUS:-YES} + GALLIUM=${GALLIUM:-NO} + OPENAL=${OPENAL:-NO} + OPENGL=${OPENGL:-YES} + JPEG=${JPEG:-NO} + PNG=${PNG:-NO} + MPG123=${MPG123:-NO} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -81,7 +86,8 @@ rm -rf wine-$VERSION tar xvf $CWD/wine-$VERSION.tar.bz2 tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz -# Apply Staging patches +# Apply Staging patches: + cd wine-staging-$VERSION/patches ./patchinstall.sh --all DESTDIR=$TMP/wine-$VERSION @@ -93,7 +99,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Various compile options +# Various compile options: + if [ "$XORG" = "YES" ]; then do_x="with" else @@ -166,7 +173,8 @@ if [ "$MPG123" = "YES" ]; then do_mpg123="without" fi -# All of the libraries produced are 32bit libs anyway +# All of the libraries produced are 32bit libs anyway: + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -203,8 +211,10 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +DOCS="ANNOUNCE AUTHORS COPYING.LIB LICENSE* MAINTAINERS README VERSION" + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a ANNOUNCE AUTHORS COPYING.LIB LICENSE* README VERSION $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |