blob: c0f9c8e7e8aebc38bfd912a487d49d381f602dbf (
plain)
1 # Description: WINE - Implementation of Windows DLL's and core.
2 # URL: https://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 gnutls-32 lcms2-32 mpg123-32 openal-32 prelink xorg-libxcomposite-32 xorg-libxcursor-32 xorg-libxinerama-32 xorg-libxrandr-32 xorg-libxxf86dga-32 xorg-libxxf86vm-32
6
7 name=wine
8 version=2.10
9 release=1
10 source=(https://dl.winehq.org/wine/source/2.x/$name-$version.tar.xz
11 https://dl.winehq.org/wine/wine-gecko/2.47/wine_gecko-2.47-x86.msi
12 https://dl.winehq.org/wine/wine-gecko/2.47/wine_gecko-2.47-x86_64.msi
13 https://dl.winehq.org/wine/wine-mono/4.7.0/wine-mono-4.7.0.msi)
14
15 build() {
16 install -d wine32 wine64
17
18 export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
19
20 cd wine64
21
22 ../$name-$version/configure \
23 --prefix=/usr \
24 --libdir=/usr/lib \
25 --enable-win64
26
27 make depend
28 make
29 make DESTDIR=$PKG install
30
31 cd ../wine32
32 CFLAGS="${CFLAGS} -m32"
33 CXXFLAGS="${CXXFLAGS} -m32"
34 LDFLAGS="${LDFLAGS} -m32"
35 export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
36
37 ../$name-$version/configure \
38 --prefix=/usr \
39 --libdir=/usr/lib32 \
40 --x-includes=/usr/include/X11 \
41 --x-libraries=/usr/lib32 \
42 --cache-file=config.cache \
43 --with-wine64=../wine64
44
45 make depend
46 make
47 make DESTDIR=$PKG install
48
49 install -d $PKG/usr/share/wine/gecko
50 install -d $PKG/usr/share/wine/mono
51
52 install -t $PKG/usr/share/wine/gecko/ \
53 $SRC/wine_gecko-2.47-x86.msi \
54 $SRC/wine_gecko-2.47-x86_64.msi
55
56 install $SRC/wine-mono-4.7.0.msi $PKG/usr/share/wine/mono/
57
58 rm -r $PKG/usr/share/man/??.UTF-8
59 }
|