blob: 09e514d65cb77aed4a29a0ab9e098cff88dc4a88 (
plain)
1 # Description: WINE - Implementation of Windows DLL's and core.
2 # URL: https://www.winehq.org/
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 vkd3d-32 xorg-libxcomposite-32 xorg-libxcursor-32 xorg-libxinerama-32 xorg-libxxf86dga-32 mingw-w64-gcc
5
6 name=wine
7 version=6.21
8 release=1
9 source=(https://dl.winehq.org/wine/source/6.x/$name-$version.tar.xz
10 https://dl.winehq.org/wine/wine-gecko/2.47.2/wine-gecko-2.47.2-x86.msi
11 https://dl.winehq.org/wine/wine-gecko/2.47.2/wine-gecko-2.47.2-x86_64.msi
12 https://dl.winehq.org/wine/wine-mono/6.4.0/wine-mono-6.4.0-x86.msi)
13
14 build() {
15 # Allow ccache to work
16 mv $name-$version $name
17
18 # https://bugs.winehq.org/show_bug.cgi?id=43530
19 export CFLAGS="${CFLAGS/-fno-plt/}"
20 export LDFLAGS="${LDFLAGS/,-z,now/}"
21
22 install -d wine32 wine64
23
24 export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
25
26 cd wine64
27
28 ../$name/configure \
29 --prefix=/usr \
30 --libdir=/usr/lib \
31 --enable-win64
32
33 make depend
34 make
35 make DESTDIR=$PKG install
36
37 cd ../wine32
38 CFLAGS="${CFLAGS} -m32"
39 CXXFLAGS="${CXXFLAGS} -m32"
40 LDFLAGS="${LDFLAGS} -m32"
41 export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
42
43 ../$name/configure \
44 --prefix=/usr \
45 --libdir=/usr/lib32 \
46 --x-includes=/usr/include/X11 \
47 --x-libraries=/usr/lib32 \
48 --cache-file=config.cache \
49 --with-wine64=../wine64
50
51 make depend
52 make
53 make DESTDIR=$PKG install
54
55 install -d $PKG/etc/revdep.d
56 echo "/usr/lib/wine/x86_64-unix" > $PKG/etc/revdep.d/$name
57 echo "/usr/lib32/wine/i386-unix" >> $PKG/etc/revdep.d/$name
58
59 install -d $PKG/usr/share/wine/gecko
60 install -d $PKG/usr/share/wine/mono
61
62 install -t $PKG/usr/share/wine/gecko/ \
63 $SRC/wine-gecko-2.47.2-x86.msi \
64 $SRC/wine-gecko-2.47.2-x86_64.msi
65
66 install $SRC/wine-mono-6.4.0-x86.msi $PKG/usr/share/wine/mono/
67
68 rm -r $PKG/usr/share/man/??.UTF-8
69 }
|