summaryrefslogtreecommitdiff
path: root/wine/Pkgfile
blob: 506238e4076bb06415d17a5a76e8199373cb8a7f (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 xorg-libxcomposite-32 xorg-libxcursor-32 xorg-libxinerama-32 xorg-libxrandr-32 xorg-libxxf86dga-32
    5 
    6 name=wine
    7 version=3.7
    8 release=1
    9 source=(https://dl.winehq.org/wine/source/3.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.7.1/wine-mono-4.7.1.msi)
   13 
   14 build() {
   15 	install -d wine32 wine64
   16 
   17 	export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
   18 
   19 	cd wine64
   20 
   21 	../$name-$version/configure \
   22 		--prefix=/usr \
   23 		--libdir=/usr/lib \
   24 		--enable-win64
   25 
   26 	make depend
   27 	make
   28 	make DESTDIR=$PKG install
   29 
   30 	cd ../wine32
   31 	CFLAGS="${CFLAGS} -m32"
   32 	CXXFLAGS="${CXXFLAGS} -m32"
   33 	LDFLAGS="${LDFLAGS} -m32"
   34 	export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
   35 
   36 	../$name-$version/configure \
   37 		--prefix=/usr \
   38 		--libdir=/usr/lib32 \
   39 		--x-includes=/usr/include/X11 \
   40 		--x-libraries=/usr/lib32 \
   41 		--cache-file=config.cache \
   42 		--with-wine64=../wine64
   43 
   44 	make depend
   45 	make
   46 	make DESTDIR=$PKG install
   47 
   48 	install -d $PKG/usr/share/wine/gecko
   49 	install -d $PKG/usr/share/wine/mono
   50 
   51 	install -t $PKG/usr/share/wine/gecko/ \
   52 		$SRC/wine_gecko-2.47-x86.msi \
   53 		$SRC/wine_gecko-2.47-x86_64.msi
   54 
   55 	install $SRC/wine-mono-4.7.1.msi $PKG/usr/share/wine/mono/
   56 
   57 	rm -r $PKG/usr/share/man/??.UTF-8
   58 }

Generated by cgit