Workaround an issue with the file 5.40 update that prevents makepkg from extracting secondary source tarballs

Fixes https://github.com/Frogging-Family/linux-tkg/issues/215
This commit is contained in:
Tk-Glitch 2021-04-01 19:22:08 +02:00
parent b61ce06e3a
commit 5917bde99f

View File

@ -346,6 +346,9 @@ _tkg_srcprep() {
# add upstream patch
if [ "$_sub" != "0" ]; then
msg2 "Patching from $_basekernel to $pkgver"
if [ ! -e "$srcdir/patch-${pkgver}" ]; then
( cd "$_where" && xz -dk patch-${pkgver}.xz && mv "$_where"/patch-${pkgver} "$srcdir"/ )
fi
tkgpatch="$srcdir/patch-${pkgver}" && _tkg_patcher
fi