# Maintainer: Roland pkgname=wine-x64 pkgver=5.8 pkgrel=1 pkgdesc="A compatibility layer for running Windows programs. This only configured with x64 support." url="http://www.winehq.com" arch=(x86_64) options=(staticlibs) license=(LGPL) # replacing rc with -rc # pkgver is not allowed to contain hyphens _pkgbasever=${pkgver/rc/-rc} source=(https://dl.winehq.org/wine/source/5.x/wine-$_pkgbasever.tar.xz{,.sign} 30-win32-aliases.conf) sha512sums=('7b9df380655a72e8b9e95ca271a62308262d8efabbeb2ad459071afc9ed51518b42b1f75b019fe8d6b53cf5185e9cfc45ac1b8a7092f118fa2aff14f99c012de' '7e8d018ee428775ff51d682e724d0b3a07a267b6543ab98a9b807f33bf8178ba4585e5b64709f6ade1bccfd814afbb6fec69977ecd53ad15c89bb0512765256a' '6e54ece7ec7022b3c9d94ad64bdf1017338da16c618966e8baf398e6f18f80f7b0576edf1d1da47ed77b96d577e4cbb2bb0156b0b11c183a0accf22654b0a2bb') validpgpkeys=(DA23579A74D4AD9AF9D3F945CEFAC8EAAF17519D) depends=( libx11 fontconfig lcms2 sdl2 libxcursor libjpeg libxslt libxrandr libxi freetype2 libxinerama libxcomposite glu ) makedepends=( bison ) optdepends=( v4l-utils opencl-headers opencl-icd-loader libpulse gsm libgphoto2 sane libcups openal faudio mpg123 vkd3d vulkan-icd-loader vulkan-headers ) prepare() { # https://bugs.winehq.org/show_bug.cgi?id=43530 export CFLAGS="${CFLAGS/-fno-plt/}" export LDFLAGS="${LDFLAGS/,-z,now/}" sed 's|OpenCL/opencl.h|CL/opencl.h|g' -i wine-$_pkgbasever/configure* # Get rid of old build dirs rm -rf wine-64-build } build() { msg2 "building wine-$_pkgbasever ..." cd wine-$_pkgbasever ./configure \ --prefix=/usr \ --libdir=/usr/lib \ --with-x \ --without-gstreamer \ --without-hal \ --without-oss \ --without-mingw \ --enable-win64 make } package() { msg2 "packaging wine-$_pkgbasever ..." cd wine-$_pkgbasever make prefix="$pkgdir/usr" \ libdir="$pkgdir/usr/lib" \ dlldir="$pkgdir/usr/lib/wine" install # font aliasing settings install -d "$pkgdir"/etc/fonts/conf.{avail,d} install -m644 "$srcdir/30-win32-aliases.conf" "$pkgdir/etc/fonts/conf.avail" ln -s ../conf.avail/30-win32-aliases.conf "$pkgdir/etc/fonts/conf.d/30-win32-aliases.conf" }