opt/wine/Pkgfile

70 lines
1.9 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: WINE - Implementation of Windows DLL's and core.
2020-03-04 22:43:13 +01:00
# URL: https://www.winehq.org/
2014-11-10 13:25:50 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# 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
2006-02-23 16:26:10 +01:00
name=wine
2021-12-27 17:22:52 +01:00
version=7.0-rc3
2020-04-25 13:07:25 +02:00
release=1
2021-12-11 15:37:18 +01:00
source=(https://dl.winehq.org/wine/source/7.0/$name-$version.tar.xz
2020-12-17 15:04:12 +01:00
https://dl.winehq.org/wine/wine-gecko/2.47.2/wine-gecko-2.47.2-x86.msi
https://dl.winehq.org/wine/wine-gecko/2.47.2/wine-gecko-2.47.2-x86_64.msi
2021-11-28 10:40:30 +01:00
https://dl.winehq.org/wine/wine-mono/7.0.0/wine-mono-7.0.0-x86.msi)
2006-02-23 16:26:10 +01:00
build() {
2018-12-09 09:11:08 +01:00
# Allow ccache to work
mv $name-$version $name
# https://bugs.winehq.org/show_bug.cgi?id=43530
export CFLAGS="${CFLAGS/-fno-plt/}"
export LDFLAGS="${LDFLAGS/,-z,now/}"
install -d wine32 wine64
2011-10-17 13:12:25 +02:00
2016-01-12 01:11:11 +01:00
export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
2016-03-08 08:00:01 +01:00
cd wine64
2018-12-10 10:13:03 +01:00
../$name/configure \
--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"
2018-12-10 10:13:03 +01:00
../$name/configure \
2006-10-28 22:24:50 +02:00
--prefix=/usr \
--libdir=/usr/lib32 \
--x-includes=/usr/include/X11 \
--x-libraries=/usr/lib32 \
--cache-file=config.cache \
--with-wine64=../wine64
2011-10-17 13:12:25 +02:00
2006-02-23 16:26:10 +01:00
make depend
make
make DESTDIR=$PKG install
2012-10-28 14:24:01 +01:00
2021-10-28 10:16:51 +02:00
install -d $PKG/etc/revdep.d
echo "/usr/lib/wine/x86_64-unix" > $PKG/etc/revdep.d/$name
echo "/usr/lib32/wine/i386-unix" >> $PKG/etc/revdep.d/$name
2012-10-28 14:24:01 +01:00
install -d $PKG/usr/share/wine/gecko
install -d $PKG/usr/share/wine/mono
install -t $PKG/usr/share/wine/gecko/ \
2020-12-17 15:04:12 +01:00
$SRC/wine-gecko-2.47.2-x86.msi \
$SRC/wine-gecko-2.47.2-x86_64.msi
2021-11-28 10:40:30 +01:00
install $SRC/wine-mono-7.0.0-x86.msi $PKG/usr/share/wine/mono/
2012-10-28 14:24:01 +01:00
2015-12-20 10:28:24 +01:00
rm -r $PKG/usr/share/man/??.UTF-8
2006-02-23 16:26:10 +01:00
}