--- PKGBUILD 2021-05-31 11:52:38.124496766 +0800 +++ PKGBUILD 2021-05-27 10:27:26.099954762 +0800 @@ -103,7 +103,16 @@ prepare() { # Allow ccache to work - mv $pkgname-$_pkgbasever $pkgname + mv wine-$_pkgbasever $pkgname + + scard4wine_dir=scard4wine/src + cp -v $scard4wine_dir/winscard.c $pkgname/dlls/winscard/winscard.c + cp -v $scard4wine_dir/winscard.spec $pkgname/dlls/winscard/winscard.spec + cp -v $scard4wine_dir/winscard.h $pkgname/include/winscard.h + cp -v $scard4wine_dir/winsmcrd.h $pkgname/include/winsmcrd.h + cp -v $scard4wine_dir/wine-compat56.h $pkgname/include/wine-compat.h + + echo EXTRADLLFLAGS = -mcygwin >> $pkgname/dlls/winscard/Makefile.in # Doesn't compile without remove these flags as of 4.10 export CFLAGS="${CFLAGS/-fno-plt/}" @@ -176,3 +185,11 @@ } # vim:set ts=8 sts=2 sw=2 et: + +source+=("scard4wine::git+https://git.code.sf.net/p/scard4wine/code.git#commit=484230432f6f29538916872dac495d8a8de45382") +sha512sums+=('SKIP') +makedepends+=(git) +provides=("$pkgname=$pkgver") +conflicts=("$pkgname") +pkgname+='-winscard' +pkgdesc+=" (with IDRASSI's winscard patch)"