blob: 5fa28fbad0302069b26dbcb13586979003c3fced (
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 # 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-libxxf86dga-32
5 # Optional: vkd3d-32
6
7 name=wine
8 version=4.5
9 release=1
10 source=(https://dl.winehq.org/wine/source/4.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.8.0/wine-mono-4.8.0.msi)
14
15 build() {
16 # Allow ccache to work
17 mv $name-$version $name
18
19 # https://bugs.winehq.org/show_bug.cgi?id=43530
20 export CFLAGS="${CFLAGS/-fno-plt/}"
21 export LDFLAGS="${LDFLAGS/,-z,now/}"
22
23 install -d wine32 wine64
24
25 export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
26
27 cd wine64
28
29 ../$name/configure \
30 --prefix=/usr \
31 --libdir=/usr/lib \
32 --enable-win64
33
34 make depend
35 make
36 make DESTDIR=$PKG install
37
38 cd ../wine32
39 CFLAGS="${CFLAGS} -m32"
40 CXXFLAGS="${CXXFLAGS} -m32"
41 LDFLAGS="${LDFLAGS} -m32"
42 export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
43
44 ../$name/configure \
45 --prefix=/usr \
46 --libdir=/usr/lib32 \
47 --x-includes=/usr/include/X11 \
48 --x-libraries=/usr/lib32 \
49 --cache-file=config.cache \
50 --with-wine64=../wine64
51
52 make depend
53 make
54 make DESTDIR=$PKG install
55
56 install -d $PKG/usr/share/wine/gecko
57 install -d $PKG/usr/share/wine/mono
58
59 install -t $PKG/usr/share/wine/gecko/ \
60 $SRC/wine_gecko-2.47-x86.msi \
61 $SRC/wine_gecko-2.47-x86_64.msi
62
63 install $SRC/wine-mono-4.8.0.msi $PKG/usr/share/wine/mono/
64
65 rm -r $PKG/usr/share/man/??.UTF-8
66 }
|