From db1f97c638bf820cf1cce1da8ced5d1cfd31c568 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Fri, 19 Mar 2021 18:27:28 +0100 Subject: [PATCH] Check the full path before copying winesync header file. This fixes a failure when selecting the feature on unsupported kernels. --- PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 5b6d467..e40d8b6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -538,7 +538,7 @@ hackbase() { install -Dm644 "${srcdir}"/customization-full.cfg "${pkgdir}/usr/share/doc/${pkgbase}/customization.cfg" # workaround for missing header with winesync - if [ -e "${srcdir}/winesync.rules" ]; then + if [ -e ""${srcdir}/${_srcpath}"/include/uapi/linux/winesync.h" ]; then msg2 "Workaround missing winesync header" install -Dm644 "${srcdir}/${_srcpath}"/include/uapi/linux/winesync.h "${pkgdir}/usr/include/linux/winesync.h" fi