blob: 6865681f6a1de7f9e9b63a463c634dec35fce222 (
plain)
1 # Description: WINE with staging patches
2 # URL: https://wiki.winehq.org/Wine-Staging
3 # Maintainer: Matt Housh, jaeger at crux dot ninja
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-libxrandr-32 xorg-libxxf86dga-32
5
6 name=wine-staging
7 version=3.16
8 release=1
9 source=(https://dl.winehq.org/wine/source/3.x/wine-$version.tar.xz \
10 https://github.com/$name/$name/archive/v${version}/$name-$version.tar.gz \
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.3/wine-mono-4.7.3.msi)
14
15 build() {
16 # apply staging patches
17 cd $name-$version
18 ./patches/patchinstall.sh DESTDIR=../wine-$version --all
19 cd ..
20
21 install -d wine32 wine64
22
23 export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
24
25 cd wine64
26
27 ../wine-$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 ../wine-$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.47-x86.msi \
59 $SRC/wine_gecko-2.47-x86_64.msi
60
61 install $SRC/wine-mono-4.7.3.msi $PKG/usr/share/wine/mono/
62
63 rm -r $PKG/usr/share/man/??.UTF-8
64 }
|