# Maintainer: Andreas Baumann # Contributor: Andreas Radke pkgbase=linux-lts515 pkgver=5.15.120 pkgrel=1 pkgdesc='LTS Linux 5.15.x' url="https://www.kernel.org/" arch=(x86_64 pentium4 i686 i486) license=(GPL2) makedepends=( bc libelf pahole cpio perl tar xz xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick texlive-latexextra ) options=('!strip') _srcname=linux-$pkgver source=( https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign} config # the main kernel config file 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch 0002-PCI-Add-more-NVIDIA-controllers-to-the-MSI-masking-q.patch 0003-iommu-intel-do-deep-dma-unmapping-to-avoid-kernel-fl.patch 0004-Bluetooth-btintel-Fix-bdaddress-comparison-with-garb.patch 0005-lg-laptop-Recognize-more-models.patch ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman ) # https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc sha256sums=('6499089eae6b271063cb3e873ab7f4ba0543cfb21dcc9c54d9bcf5357db683f6' 'SKIP' '580d4f00ed5fe607cc634b37ddf45980a09d28caf807f7bea9e89f53d469436f' '3b5cfc9ca9cf778ea2c4b619b933cda26519969df2d764b5a687f63cf59974cd' 'c175fbb141c3cec013c799f694d88310375ac5456042f6a4a1adc7667836d786' '8357f000b2b622e73dcfd41c2bad42b5e99fffe8f7ee64f774aa771f86cef43c' '5c1ee81fdd5818442af6081de987f9c1a9ce3c8d183566b3dfc19a8433aa3dde' '067e8995fcd6f6ed25e0253e9374c0e179a000c154da3e59ce62634945ac5be9') export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" prepare() { cd $_srcname echo "Setting version..." scripts/setlocalversion --save-scmversion echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname local src for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" [[ $src = *.patch ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done echo "Setting config..." cp ../config .config make olddefconfig diff -u ../config .config || : make -s kernelrelease > version echo "Prepared $pkgbase version $(