1 # Maintainer: Dmitry <dmitry923@gmail.com>
7 _pkgbasever=${pkgver/rc/-rc}
9 _gitroot="git://source.winehq.org/git/wine.git"
12 pkgdesc="A compatibility layer for running Windows programs. Latest GIT version. Experimental dualcore support for WoW added."
13 url="http://www.winehq.com"
16 install=(wine-git.install)
19 fontconfig lib32-fontconfig
21 libxcursor lib32-libxcursor
22 libxrandr lib32-libxrandr
23 libxdamage lib32-libxdamage
24 libxxf86dga lib32-libxxf86dga
26 alsa-lib lib32-alsa-lib
30 makedepends=(autoconf ncurses bison perl fontforge flex prelink
31 'gcc>=4.5.0-2' 'gcc-multilib>=4.5.0-2'
35 libxinerama lib32-libxinerama
36 libxcomposite lib32-libxcomposite
38 libxxf86vm lib32-libxxf86vm
48 v4l-utils lib32-v4l-utils
63 v4l-utils lib32-v4l-utils
67 if [[ $CARCH == i686 ]]; then
68 # Strip lib32 etc. on i686
69 depends=(${depends[@]/*32-*/})
70 makedepends=(${makedepends[@]/*32-*/})
71 makedepends=(${makedepends[@]/*-multilib*/})
72 optdepends=(${optdepends[@]/*32-*/})
75 provides=("wine=$pkgver" "bin32-wine=$pkgver" "wine-wow64=$pkgver")
76 conflicts=("wine" 'bin32-wine' 'wine-wow64')
77 replaces=("wine" 'bin32-wine')
83 # Get rid of old build dirs
84 rm -rf $pkgname-{32,64}-build
85 mkdir $pkgname-32-build
87 msg "Connecting to GIT server...."
89 if [ -d ${srcdir}/$pkgname ] ; then
90 cd $pkgname && git pull origin master
91 msg "Local repository updated."
93 git clone $_gitroot $pkgname
98 # Fetching the patch source files if not already fetched
99 if [[ "`ls | grep rgl.patch.gz`" != "rgl.patch.gz" ]]; then
100 wget http://www.aewi.info/rgl/rgl.patch.gz
105 cd "$srcdir/$pkgname"
106 patch -p1 < ../rgl.patch
110 if [[ $CARCH == x86_64 ]]; then
112 msg2 "Building Wine-64..."
114 mkdir $pkgname-64-build
115 cd "$srcdir/$pkgname-64-build"
116 ../$pkgname/configure \
127 --with-wine64="$srcdir/$pkgname-64-build"
130 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
133 msg2 "Building Wine-32..."
134 cd "$srcdir/$pkgname-32-build"
135 ../$pkgname/configure \
145 msg2 "Packaging Wine-32..."
146 cd "$srcdir/$pkgname-32-build"
148 if [[ $CARCH == i686 ]]; then
149 make prefix="$pkgdir/usr" install
151 make prefix="$pkgdir/usr" \
152 libdir="$pkgdir/usr/lib32" \
153 dlldir="$pkgdir/usr/lib32/wine" install
155 msg2 "Packaging Wine-64..."
156 cd "$srcdir/$pkgname-64-build"
157 make prefix="$pkgdir/usr" \
158 libdir="$pkgdir/usr/lib" \
159 dlldir="$pkgdir/usr/lib/wine" install