summaryrefslogtreecommitdiff
path: root/wine-staging/Pkgfile
blob: d229d7f187487caeaf492098da78c6691584fe52 (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 vkd3d-32
    5 
    6 name=wine-staging
    7 version=5.20
    8 release=1
    9 source=(https://dl.winehq.org/wine/source/5.x/wine-${version:0:4}.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.1/wine-gecko-2.47.1-x86.msi \
   12 	https://dl.winehq.org/wine/wine-gecko/2.47.1/wine-gecko-2.47.1-x86_64.msi \
   13 	https://dl.winehq.org/wine/wine-mono/5.1.1/wine-mono-5.1.1-x86.msi)
   14 
   15 build() {
   16 	# apply staging patches
   17 	cd $name-$version
   18 	./patches/patchinstall.sh DESTDIR=../wine-${version:0:4} --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:0:4}/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:0:4}/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.1-x86.msi \
   59 		$SRC/wine-gecko-2.47.1-x86_64.msi
   60 
   61 	install $SRC/wine-mono-5.1.1-x86.msi $PKG/usr/share/wine/mono/
   62 
   63 	rm -r $PKG/usr/share/man/??.UTF-8
   64 }

Generated by cgit