updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wine-rawinput / PKGBUILD
blob559c6acde1431d51d4bbafde4fdf79c1ffa1e427
1 # Maintainer: aliendonald <aliendonald@gmail.com>
3 pkgname=wine-rawinput
4 _pkgbasename=wine
5 pkgver=1.3.28
6 pkgrel=1
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"
17 arch=(i686 x86_64)
18 license=(LGPL)
19 install=wine.install
21 depends=(
22   fontconfig      lib32-fontconfig
23   mesa            lib32-mesa 
24   libxcursor      lib32-libxcursor
25   libxrandr       lib32-libxrandr
26   libxdamage      lib32-libxdamage
27   libxxf86dga     lib32-libxxf86dga
28   alsa-lib        lib32-alsa-lib
29   desktop-file-utils
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'
35   giflib          lib32-giflib
36   libxpm          lib32-libxpm
37   libpng          lib32-libpng
38   libxinerama     lib32-libxinerama
39   libxcomposite   lib32-libxcomposite
40   libxmu          lib32-libxmu
41   libxxf86vm      lib32-libxxf86vm
42   libxml2         lib32-libxml2
43   libxslt         lib32-libxslt
44   libldap         lib32-libldap
45   lcms            lib32-lcms
46   mpg123          lib32-mpg123
47   openal          lib32-openal
48   jack            lib32-jack
49   libcups         lib32-libcups
50   gnutls          lib32-gnutls
51   v4l-utils       lib32-v4l-utils
53   
54 optdepends=(
55   giflib          lib32-giflib
56   libpng          lib32-libpng
57   libldap         lib32-libldap
58   lcms            lib32-lcms
59   libxml2         lib32-libxml2
60   mpg123          lib32-mpg123
61   openal          lib32-openal
62   jack            lib32-jack
63   libcups         lib32-libcups
64   gnutls          lib32-gnutls
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")
75   conflicts=('wine')
76 else
77   provides=("wine=$pkgver" "bin32-wine=$pkgver" "wine-wow64=$pkgver")
78   conflicts=('wine' 'bin32-wine' 'wine-wow64')
79   replaces=('bin32-wine')
82 build() {
83   cd "$srcdir"
85   # Allow ccache to work
86   mv $_pkgbasename-$_pkgbasever $_pkgbasename
88   msg2 "Patching..."
89   (
90     cd $_pkgbasename
91     patch -Np1 < $srcdir/wine_rawinput_8_8_2011.patch
92     autoreconf
93   )
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 \
105       --prefix=/usr \
106       --sysconfdir=/etc \
107       --libdir=/usr/lib \
108       --with-x \
109       --enable-win64
111     make -j3
113     _wine32opts=(
114       --libdir=/usr/lib32
115       --with-wine64="$srcdir/$_pkgbasename-64-build"
116     )
118     export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
119   fi
121   msg2 "Building Wine-32..."
122   cd "$srcdir/$_pkgbasename-32-build"
123   ../$_pkgbasename/configure \
124     --prefix=/usr \
125     --sysconfdir=/etc \
126     --with-x \
127     "${_wine32opts[@]}"
129   make -j3
132 package() {
133   msg2 "Packaging Wine-32..."
134   cd "$srcdir/$_pkgbasename-32-build"
136   if [[ $CARCH == i686 ]]; then
137     make prefix="$pkgdir/usr" install
138   else
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
148   fi
151 # vim:set ts=8 sts=2 sw=2 et: