1 # Maintainer: spbogie <spbogie@gmail.com>
2 # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
3 # Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
4 # Contributor: Eduardo Romero <eduardo@archlinux.org>
5 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
12 _pkgbasever=${pkgver/rc/-rc}
14 source=(http://ibiblio.org/pub/linux/system/emulators/$_pkgbasename/$_pkgbasename-$_pkgbasever.tar.bz2
15 http://art.ified.ca/downloads/winepulse/winepulse-0.40.patch
16 http://art.ified.ca/downloads/winepulse/winepulse-configure.ac-1.3.22.patch
17 http://art.ified.ca/downloads/winepulse/winepulse-winecfg-1.3.11.patch)
18 md5sums=('c9850862748bde7994bd757574e8974e'
19 '613963175c1e60fd40dba7956396c500'
20 'bc2d01c6f08e615d48482ac5dbff6e23'
21 '2015ce195cc55273d3470a6cc95bec8c')
23 pkgdesc="A compatibility layer for running Windows programs (With PulseAudio support from http://art.ified.ca/?page_id=40)"
24 url="http://www.winehq.com"
30 fontconfig lib32-fontconfig
32 libxcursor lib32-libxcursor
33 libxrandr lib32-libxrandr
34 libxdamage lib32-libxdamage
35 libxxf86dga lib32-libxxf86dga
36 alsa-lib lib32-alsa-lib
38 pulseaudio lib32-pulseaudio
41 makedepends=(autoconf ncurses bison perl fontforge flex prelink
42 'gcc>=4.5.0-2' 'gcc-multilib>=4.5.0-2'
46 libxinerama lib32-libxinerama
47 libxcomposite lib32-libxcomposite
49 libxxf86vm lib32-libxxf86vm
59 v4l-utils lib32-v4l-utils
73 v4l-utils lib32-v4l-utils
76 if [[ $CARCH == i686 ]]; then
77 # Strip lib32 etc. on i686
78 depends=(${depends[@]/*32-*/})
79 makedepends=(${makedepends[@]/*32-*/})
80 makedepends=(${makedepends[@]/*-multilib*/})
81 optdepends=(${optdepends[@]/*32-*/})
82 provides=("wine=$pkgver")
85 provides=("wine=$pkgver" "bin32-wine=$pkgver" "wine-wow64=$pkgver")
86 conflicts=('wine' 'bin32-wine' 'wine-wow64')
87 replaces=('bin32-wine')
93 # Allow ccache to work
94 mv $_pkgbasename-$_pkgbasever $_pkgbasename
99 patch -Np1 < $srcdir/winepulse-0.40.patch
100 patch -Np1 < $srcdir/winepulse-configure.ac-1.3.22.patch
101 patch -Np1 < $srcdir/winepulse-winecfg-1.3.11.patch
105 # Get rid of old build dirs
106 rm -rf $_pkgbasename-{32,64}-build
107 mkdir $_pkgbasename-32-build
109 if [[ $CARCH == x86_64 ]]; then
110 msg2 "Building Wine-64..."
112 mkdir $_pkgbasename-64-build
113 cd "$srcdir/$_pkgbasename-64-build"
114 ../$_pkgbasename/configure \
125 --with-wine64="$srcdir/$_pkgbasename-64-build"
128 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
131 msg2 "Building Wine-32..."
132 cd "$srcdir/$_pkgbasename-32-build"
133 ../$_pkgbasename/configure \
143 msg2 "Packaging Wine-32..."
144 cd "$srcdir/$_pkgbasename-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/$_pkgbasename-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: