pkgname=wine pkgver=9.22 _pkgver=9.x __pkgver=9.22 pkgrel=1 pkgdesc="Compatibility layer capable of running Windows applications on several POSIX-compliant operating systems." url="https://www.winehq.org" arch=('x86_64') license=('LGPL') depends=('fontconfig' 'libxcursor' 'libxrandr' 'alsa-lib' 'desktop-file-utils' 'giflib' 'jack' 'cups' 'gnutls' 'v4l-utils' 'libxinerama' 'ncurses' 'libxcomposite' 'alsa-plugins' 'samba' 'gst-plugins-base' 'pulseaudio' 'sane' 'libgphoto2' 'opencl-headers' 'vulkan-validationlayers' 'libxkbcommon' 'wayland') makedepends=('autoconf' 'perl' 'fontforge' 'flex' 'libxpm') install=wine.install groups=('system') source=("https://dl.winehq.org/wine/source/${_pkgver}/${pkgname}-${__pkgver}.tar.xz") sha512sums=('8b54aee952abd08969d3485ef12db9aabeea8627fdaf7a27cb3392477580f2b5882467cd15ba4670741b6b20cc48bb5e3585d44ee4fb95a013c513a3c04342e4') build() { mkdir -p build cd build ../${pkgname}-${__pkgver}/configure \ --prefix=/usr \ --sysconfdir=/etc \ --libdir=/usr/lib \ --with-x \ --with-gstreamer \ --enable-win64 \ --with-wayland make } package() { cd build make prefix=${pkgdir}/usr libdir=${pkgdir}/usr/lib dlldir=${pkgdir}/usr/lib/wine install sed -i -e 's|wine start /unix %f|wine64 start /unix %f|' ${pkgdir}/usr/share/applications/wine.desktop }