68 lines
1.8 KiB
Plaintext
68 lines
1.8 KiB
Plaintext
# Description: WINE - Implementation of Windows DLL's and core.
|
|
# URL: http://www.winehq.com/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Packager: Daniel Walpole, daniel at walpole dot id dot au
|
|
# Depends on:fontconfig-32 freeglut-32 xorg-libxcomposite-32 xorg-libxcursor-32 xorg-libxinerama-32 xorg-libxrandr-32 xorg-libxxf86dga-32 alsa-lib-32 libpng-32 libjpeg-turbo-32 prelink gnutls-32 gcc48
|
|
|
|
name=wine
|
|
version=1.9.5
|
|
release=1
|
|
source=(http://dl.winehq.org/wine/source/1.9/$name-$version.tar.bz2
|
|
http://dl.winehq.org/wine/wine-gecko/2.44/wine_gecko-2.44-x86.msi
|
|
http://dl.winehq.org/wine/wine-gecko/2.44/wine_gecko-2.44-x86_64.msi
|
|
http://dl.winehq.org/wine/wine-mono/4.6.0/wine-mono-4.6.0.msi
|
|
build.patch)
|
|
|
|
build() {
|
|
install -d wine32 wine64
|
|
|
|
export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
|
|
|
|
# https://bugs.archlinux.org/task/48054
|
|
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69140
|
|
export CC='gcc-4.8' CXX='g++-4.8'
|
|
|
|
# https://bugs.winehq.org/show_bug.cgi?id=402534
|
|
patch -d $name-$version -p1 -i $SRC/build.patch
|
|
|
|
cd wine64
|
|
|
|
../$name-$version/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"
|
|
|
|
../$name-$version/configure \
|
|
--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/ \
|
|
$SRC/wine_gecko-2.44-x86.msi \
|
|
$SRC/wine_gecko-2.44-x86_64.msi
|
|
|
|
install $SRC/wine-mono-4.6.0.msi $PKG/usr/share/wine/mono/
|
|
|
|
rm -r $PKG/usr/share/man/??.UTF-8
|
|
}
|