1 # Maintainer: aliendonald <aliendonald@gmail.com>
8 _pkgbasever=${pkgver/rc/-rc}
10 source=(http://ibiblio.org/pub/linux/system/emulators/$_pkgbasename/$_pkgbasename-$_pkgbasever.tar.bz2
11 http://santyago.pl/files/wine_rawinput_8_8_2011.patch)
12 md5sums=('70574d609161cec8523804cd9364bcd2
13 bd529c9fceab891d816307bcc6f85aa1')
15 pkgdesc="This patch allows linux/wine users to experience OnLive"
16 url="http://www.winehq.com"
22 fontconfig lib32-fontconfig
24 libxcursor lib32-libxcursor
25 libxrandr lib32-libxrandr
26 libxdamage lib32-libxdamage
27 libxxf86dga lib32-libxxf86dga
28 alsa-lib lib32-alsa-lib
30 pulseaudio lib32-pulseaudio
33 makedepends=(autoconf ncurses bison perl fontforge flex prelink
34 'gcc>=4.5.0-2' 'gcc-multilib>=4.5.0-2'
38 libxinerama lib32-libxinerama
39 libxcomposite lib32-libxcomposite
41 libxxf86vm lib32-libxxf86vm
51 v4l-utils lib32-v4l-utils
65 v4l-utils lib32-v4l-utils
68 if [[ $CARCH == i686 ]]; then
69 # Strip lib32 etc. on i686
70 depends=(${depends[@]/*32-*/})
71 makedepends=(${makedepends[@]/*32-*/})
72 makedepends=(${makedepends[@]/*-multilib*/})
73 optdepends=(${optdepends[@]/*32-*/})
74 provides=("wine=$pkgver")
77 provides=("wine=$pkgver" "bin32-wine=$pkgver" "wine-wow64=$pkgver")
78 conflicts=('wine' 'bin32-wine' 'wine-wow64')
79 replaces=('bin32-wine')
85 # Allow ccache to work
86 mv $_pkgbasename-$_pkgbasever $_pkgbasename
91 patch -Np1 < $srcdir/wine_rawinput_8_8_2011.patch
95 # Get rid of old build dirs
96 rm -rf $_pkgbasename-{32,64}-build
97 mkdir $_pkgbasename-32-build
99 if [[ $CARCH == x86_64 ]]; then
100 msg2 "Building Wine-64..."
102 mkdir $_pkgbasename-64-build
103 cd "$srcdir/$_pkgbasename-64-build"
104 ../$_pkgbasename/configure \
115 --with-wine64="$srcdir/$_pkgbasename-64-build"
118 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
121 msg2 "Building Wine-32..."
122 cd "$srcdir/$_pkgbasename-32-build"
123 ../$_pkgbasename/configure \
133 msg2 "Packaging Wine-32..."
134 cd "$srcdir/$_pkgbasename-32-build"
136 if [[ $CARCH == i686 ]]; then
137 make prefix="$pkgdir/usr" install
139 make prefix="$pkgdir/usr" \
140 libdir="$pkgdir/usr/lib32" \
141 dlldir="$pkgdir/usr/lib32/wine" install
143 msg2 "Packaging Wine-64..."
144 cd "$srcdir/$_pkgbasename-64-build"
145 make prefix="$pkgdir/usr" \
146 libdir="$pkgdir/usr/lib" \
147 dlldir="$pkgdir/usr/lib/wine" install
151 # vim:set ts=8 sts=2 sw=2 et: