blob: ad304d2f9166bb46fde58eeca82b1c7d2029eb77 (
plain)
1 # Description: WINE - Implementation of Windows DLL's and core.
2 # URL: http://www.winehq.com/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Packager: Daniel Walpole, daniel at walpole dot id dot au
5 # Depends on:fontconfig-32 freeglut-32 xorg-libxcomposite-32 xorg-libxcursor-32 xorg-libxinerama-32 xorg-libxrandr-32 xorg-libxxf86dga-32 alsa-lib-32 libpng-32 libjpeg-turbo-32 prelink gnutls-32 gcc48
6 # Optional: gcc48-ccache-bindings
7
8 name=wine
9 version=1.9.10
10 release=1
11 source=(http://dl.winehq.org/wine/source/1.9/$name-$version.tar.bz2
12 http://dl.winehq.org/wine/wine-gecko/2.44/wine_gecko-2.44-x86.msi
13 http://dl.winehq.org/wine/wine-gecko/2.44/wine_gecko-2.44-x86_64.msi
14 http://dl.winehq.org/wine/wine-mono/4.6.2/wine-mono-4.6.2.msi)
15
16 build() {
17 install -d wine32 wine64
18
19 export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
20
21 # https://bugs.archlinux.org/task/48054
22 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69140
23 export CC='gcc-4.8' CXX='g++-4.8'
24
25 cd wine64
26
27 ../$name-$version/configure \
28 --prefix=/usr \
29 --libdir=/usr/lib \
30 --enable-win64
31
32 make depend
33 make
34 make DESTDIR=$PKG install
35
36 cd ../wine32
37 CFLAGS="${CFLAGS} -m32"
38 CXXFLAGS="${CXXFLAGS} -m32"
39 LDFLAGS="${LDFLAGS} -m32"
40 export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
41
42 ../$name-$version/configure \
43 --prefix=/usr \
44 --libdir=/usr/lib32 \
45 --x-includes=/usr/include/X11 \
46 --x-libraries=/usr/lib32 \
47 --cache-file=config.cache \
48 --with-wine64=../wine64
49
50 make depend
51 make
52 make DESTDIR=$PKG install
53
54 install -d $PKG/usr/share/wine/gecko
55 install -d $PKG/usr/share/wine/mono
56
57 install -t $PKG/usr/share/wine/gecko/ \
58 $SRC/wine_gecko-2.44-x86.msi \
59 $SRC/wine_gecko-2.44-x86_64.msi
60
61 install $SRC/wine-mono-4.6.2.msi $PKG/usr/share/wine/mono/
62
63 rm -r $PKG/usr/share/man/??.UTF-8
64 }
|