diff --git a/srcpkgs/linux4.19/template b/srcpkgs/linux4.19/template index 59e43a3fac9..36d67fbcecf 100644 --- a/srcpkgs/linux4.19/template +++ b/srcpkgs/linux4.19/template @@ -2,13 +2,16 @@ pkgname=linux4.19 version=4.19.261 revision=1 -wrksrc="linux-${version}" +wrksrc="linux-${version%.*}" short_desc="Linux kernel and modules (${version%.*} series)" maintainer="Helmut Pozimski " license="GPL-2.0-only" homepage="https://www.kernel.org" -distfiles="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${version}.tar.xz" -checksum=bec33298bd0470b5e725c7dc29a2dd4daf02065cb01cd4a54f6adee6ff582cb2 +distfiles="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${version%.*}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v4.x/patch-${version}.xz" +checksum="0c68f5655528aed4f99dae71a5b259edc93239fa899e2df79c055275c21749a1 + 0156ded8dc43ec944a30b13c5e02ef61ac601b3a7ee24ed8804b0e65d7c76aba" +skip_extraction="patch-${version}.xz" python_version=3 nodebug=yes # -dbg package is generated below manually @@ -43,6 +46,11 @@ export KBUILD_BUILD_TIMESTAMP=${SOURCE_DATE_EPOCH:-0} export KBUILD_BUILD_USER=voidlinux export KBUILD_BUILD_HOST=voidlinux +pre_patch() { + xzcat $XBPS_SRCDISTDIR/$pkgname-$version/patch-${version}.xz | + patch -sNp1 -F0 +} + do_configure() { # 4.19 misses Documentation/DocBook. We ship the directory from 4.12 here. cp -a $FILESDIR/DocBook -t Documentation