updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / wine-pulse / PKGBUILD
blob32b13bec9a6b11a5c26fe55853f4981958e1e990
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>
7 pkgname=wine-pulse
8 _pkgbasename=wine
9 pkgver=1.3.24
10 pkgrel=2
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"
25 arch=(i686 x86_64)
26 license=(LGPL)
27 install=wine.install
29 depends=(
30   fontconfig      lib32-fontconfig
31   mesa            lib32-mesa 
32   libxcursor      lib32-libxcursor
33   libxrandr       lib32-libxrandr
34   libxdamage      lib32-libxdamage
35   libxxf86dga     lib32-libxxf86dga
36   alsa-lib        lib32-alsa-lib
37   desktop-file-utils
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'
43   giflib          lib32-giflib
44   libxpm          lib32-libxpm
45   libpng          lib32-libpng
46   libxinerama     lib32-libxinerama
47   libxcomposite   lib32-libxcomposite
48   libxmu          lib32-libxmu
49   libxxf86vm      lib32-libxxf86vm
50   libxml2         lib32-libxml2
51   libxslt         lib32-libxslt
52   libldap         lib32-libldap
53   lcms            lib32-lcms
54   mpg123          lib32-mpg123
55   openal          lib32-openal
56   jack            lib32-jack
57   libcups         lib32-libcups
58   gnutls          lib32-gnutls
59   v4l-utils       lib32-v4l-utils
61   
62 optdepends=(
63   giflib          lib32-giflib
64   libpng          lib32-libpng
65   libldap         lib32-libldap
66   lcms            lib32-lcms
67   libxml2         lib32-libxml2
68   mpg123          lib32-mpg123
69   openal          lib32-openal
70   jack            lib32-jack
71   libcups         lib32-libcups
72   gnutls          lib32-gnutls
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")
83   conflicts=('wine')
84 else
85   provides=("wine=$pkgver" "bin32-wine=$pkgver" "wine-wow64=$pkgver")
86   conflicts=('wine' 'bin32-wine' 'wine-wow64')
87   replaces=('bin32-wine')
90 build() {
91   cd "$srcdir"
93   # Allow ccache to work
94   mv $_pkgbasename-$_pkgbasever $_pkgbasename
96   msg2 "Patching..."
97   (
98     cd $_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
102     autoreconf
103   )
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 \
115       --prefix=/usr \
116       --sysconfdir=/etc \
117       --libdir=/usr/lib \
118       --with-x \
119       --enable-win64
121     make
123     _wine32opts=(
124       --libdir=/usr/lib32
125       --with-wine64="$srcdir/$_pkgbasename-64-build"
126     )
128     export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
129   fi
131   msg2 "Building Wine-32..."
132   cd "$srcdir/$_pkgbasename-32-build"
133   ../$_pkgbasename/configure \
134     --prefix=/usr \
135     --sysconfdir=/etc \
136     --with-x \
137     "${_wine32opts[@]}"
139   make
142 package() {
143   msg2 "Packaging Wine-32..."
144   cd "$srcdir/$_pkgbasename-32-build"
146   if [[ $CARCH == i686 ]]; then
147     make prefix="$pkgdir/usr" install
148   else
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
158   fi
161 # vim:set ts=8 sts=2 sw=2 et: