summaryrefslogtreecommitdiff
path: root/wine/Pkgfile
blob: 3deb9564322bec38d32bce5134ff291638ea79d5 (plain)
    1 # Description: WINE - Implementation of Windows DLL's and core.
    2 # URL: https://www.winehq.com/
    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
    5 
    6 name=wine
    7 version=4.21
    8 release=1
    9 source=(https://dl.winehq.org/wine/source/4.x/$name-$version.tar.xz
   10 	https://dl.winehq.org/wine/wine-gecko/2.47/wine_gecko-2.47-x86.msi
   11 	https://dl.winehq.org/wine/wine-gecko/2.47/wine_gecko-2.47-x86_64.msi
   12 	https://dl.winehq.org/wine/wine-mono/4.9.4/wine-mono-4.9.4.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/usr/share/wine/gecko
   56 	install -d $PKG/usr/share/wine/mono
   57 
   58 	install -t $PKG/usr/share/wine/gecko/ \
   59 		$SRC/wine_gecko-2.47-x86.msi \
   60 		$SRC/wine_gecko-2.47-x86_64.msi
   61 
   62 	install $SRC/wine-mono-4.9.4.msi $PKG/usr/share/wine/mono/
   63 
   64 	rm -r $PKG/usr/share/man/??.UTF-8
   65 }

Generated by cgit