2018-09-19 16:55:05 +02:00
|
|
|
# Description: WINE with staging patches
|
|
|
|
# URL: https://wiki.winehq.org/Wine-Staging
|
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
2021-06-11 21:51:20 +02:00
|
|
|
# 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 vkd3d-32 mingw-w64-gcc libgcrypt-32
|
2018-09-19 16:55:05 +02:00
|
|
|
|
|
|
|
name=wine-staging
|
2022-08-31 18:12:14 +02:00
|
|
|
version=7.16
|
2018-09-19 16:55:05 +02:00
|
|
|
release=1
|
2022-02-08 17:25:25 +01:00
|
|
|
source=(https://dl.winehq.org/wine/source/7.x/wine-${version:0:4}.tar.xz \
|
2020-06-21 20:56:52 +02:00
|
|
|
https://github.com/$name/$name/archive/v$version/$name-$version.tar.gz \
|
2022-07-23 00:53:17 +02:00
|
|
|
https://dl.winehq.org/wine/wine-gecko/2.47.3/wine-gecko-2.47.3-x86.msi \
|
|
|
|
https://dl.winehq.org/wine/wine-gecko/2.47.3/wine-gecko-2.47.3-x86_64.msi \
|
2022-06-21 01:18:35 +02:00
|
|
|
https://dl.winehq.org/wine/wine-mono/7.3.0/wine-mono-7.3.0-x86.msi)
|
2018-09-19 16:55:05 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
# apply staging patches
|
|
|
|
cd $name-$version
|
2020-07-08 22:08:36 +02:00
|
|
|
./patches/patchinstall.sh DESTDIR=../wine-${version:0:4} --all
|
2018-09-19 16:55:05 +02:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
install -d wine32 wine64
|
|
|
|
|
|
|
|
export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
|
|
|
|
|
|
|
|
cd wine64
|
|
|
|
|
2020-07-08 22:08:36 +02:00
|
|
|
../wine-${version:0:4}/configure \
|
2018-09-19 16:55:05 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--enable-win64
|
|
|
|
|
|
|
|
make depend
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
cd ../wine32
|
|
|
|
CFLAGS="${CFLAGS} -m32"
|
|
|
|
CXXFLAGS="${CXXFLAGS} -m32"
|
|
|
|
LDFLAGS="${LDFLAGS} -m32"
|
|
|
|
export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
|
|
|
|
|
2020-07-08 22:08:36 +02:00
|
|
|
../wine-${version:0:4}/configure \
|
2018-09-19 16:55:05 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--x-includes=/usr/include/X11 \
|
|
|
|
--x-libraries=/usr/lib32 \
|
|
|
|
--cache-file=config.cache \
|
|
|
|
--with-wine64=../wine64
|
|
|
|
|
|
|
|
make depend
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
install -d $PKG/usr/share/wine/gecko
|
|
|
|
install -d $PKG/usr/share/wine/mono
|
|
|
|
|
|
|
|
install -t $PKG/usr/share/wine/gecko/ \
|
2022-07-23 00:53:17 +02:00
|
|
|
$SRC/wine-gecko-2.47.3-x86.msi \
|
|
|
|
$SRC/wine-gecko-2.47.3-x86_64.msi
|
2018-09-19 16:55:05 +02:00
|
|
|
|
2022-06-21 01:18:35 +02:00
|
|
|
install $SRC/wine-mono-7.3.0-x86.msi $PKG/usr/share/wine/mono/
|
2018-09-19 16:55:05 +02:00
|
|
|
|
|
|
|
rm -r $PKG/usr/share/man/??.UTF-8
|
2021-08-27 17:02:38 +02:00
|
|
|
|
|
|
|
install -d $PKG/etc/revdep.d
|
|
|
|
echo -e "/usr/lib/wine/x86_64-unix\n/usr/lib32/wine/i386-unix\n" > $PKG/etc/revdep.d/$name
|
2018-09-19 16:55:05 +02:00
|
|
|
}
|