# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com # Contributor: Jonathon Fernyhough # Contributor: Andreas Radke pkgbase=linux-lts510 pkgver=5.10.197 pkgrel=1 pkgdesc='LTS 5.10 Linux' url="https://www.kernel.org/" arch=(x86_64) license=(GPL2) makedepends=( bc kmod libelf pahole cpio perl tar xz xmlto python-sphinx python-sphinx_rtd_theme python-six graphviz imagemagick ) 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 # https://build.opensuse.org/package/show/home:curb:ArchLinux/linux-lts510 #0002-reorganize-gimple-includes-for-GCC-13.patch # https://lore.kernel.org/lkml/20230118202355.never.520-kees@kernel.org/raw '0003-Sphinx-7.2.2-8.0-PosixPath.patch' ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman ) # https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc md5sums=('6929e6bb34d6b64a303c05dce068feb7' 'SKIP' '8b8fa773fe9c7938a76ba07ca2933ed8' 'd31360693fb06a0d69c1f126350baa6d' 'c1f10e50f7ca23d07ae83ae6252854d5') sha256sums=('183a4507b0ebec7816a79ceba6253aa7ad345e25b0fcd4e834ee154be9a993ab' 'SKIP' 'ddc8d7c604a2f8373a25674d06cd377fdf80adca9bd426f4c8a50f3d52403001' '96a72e1652314215da7140956c3abcf495cafd00811eda3cf4ce03ec5f791f1e' '453ad77883c50b5d5b1373241a5a27a5f7cdc11c5b66dd929338fc622de6cf14') 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 make -s kernelrelease > version echo "Prepared $pkgbase version $(