2 # Maintainer: Egon Ashrafinia <wubbbi@gmx.de>
3 # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
4 # Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
5 # Contributor: Eduardo Romero <eduardo@archlinux.org>
6 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
14 source=(http://ibiblio.org/pub/linux/system/emulators/$_pkgrealname/$_pkgrealname-$pkgver.tar.bz2
15 ole-force-inproc-instead-of-local.patch)
16 md5sums=('51e20231aa72a7b9db89aefdae8e92e3'
17 '58091d383f16a71fde88fee4eac7b602')
19 pkgdesc="A compatibility layer for running Windows programs. This version of Wine includes a patch to run League of Legends."
20 url="http://www.winehq.com"
26 fontconfig lib32-fontconfig
28 libxcursor lib32-libxcursor
29 libxrandr lib32-libxrandr
30 libxdamage lib32-libxdamage
36 makedepends=(autoconf ncurses bison perl fontforge flex prelink
37 'gcc>=4.5.0-2' 'gcc-multilib>=4.5.0-2'
41 libxinerama lib32-libxinerama
42 libxcomposite lib32-libxcomposite
44 libxxf86vm lib32-libxxf86vm
52 v4l-utils lib32-v4l-utils
53 alsa-lib lib32-alsa-lib
66 v4l-utils lib32-v4l-utils
67 libpulse lib32-libpulse
68 alsa-plugins lib32-alsa-plugins
69 alsa-lib lib32-alsa-lib
73 if [[ $CARCH == i686 ]]; then
74 # Strip lib32 etc. on i686
75 depends=(${depends[@]/*32-*/})
76 makedepends=(${makedepends[@]/*32-*/})
77 makedepends=(${makedepends[@]/*-multilib*/})
78 optdepends=(${optdepends[@]/*32-*/})
79 provides=("bin32-wine=$pkgver" "wine=$pkgver")
80 conflicts=('bin32-wine' 'wine')
81 replaces=('bin32-wine' 'wine')
83 provides=("bin32-wine=$pkgver" "wine-wow64=$pkgver" "wine=$pkgver")
84 conflicts=('bin32-wine' 'wine-wow64' 'wine')
85 replaces=('bin32-wine' 'wine')
91 # Allow ccache to work
92 mv $_pkgrealname-$pkgver $_pkgrealname
97 patch -Np1 < ../../ole-force-inproc-instead-of-local.patch
100 # Get rid of old build dirs
101 rm -rf $_pkgrealname-{32,64}-build
102 mkdir $_pkgrealname-32-build
104 # These additional CFLAGS solve FS#27662
105 export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
106 export CXXFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
108 if [[ $CARCH == x86_64 ]]; then
109 msg2 "Building Wine-64..."
111 mkdir $_pkgrealname-64-build
112 cd "$srcdir/$_pkgrealname-64-build"
113 ../$_pkgrealname/configure \
124 --with-wine64="$srcdir/$_pkgrealname-64-build"
127 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
130 msg2 "Building Wine-32..."
131 cd "$srcdir/$_pkgrealname-32-build"
132 ../$_pkgrealname/configure \
138 # These additional CFLAGS solve FS#27560
139 make CFLAGS+="-mstackrealign" CXXFLAGS+="-mstackrealign"
143 msg2 "Packaging Wine-32..."
144 cd "$srcdir/$_pkgrealname-32-build"
146 if [[ $CARCH == i686 ]]; then
147 make prefix="$pkgdir/usr" install
149 make prefix="$pkgdir/usr" \
150 libdir="$pkgdir/usr/lib32" \
151 dlldir="$pkgdir/usr/lib32/wine" install
153 msg2 "Packaging Wine-64..."
154 cd "$srcdir/$_pkgrealname-64-build"
155 make prefix="$pkgdir/usr" \
156 libdir="$pkgdir/usr/lib" \
157 dlldir="$pkgdir/usr/lib/wine" install
161 # vim:set ts=8 sts=2 sw=2 et: