# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com # Contributor: Jonathon Fernyhough # Contributor: Andreas Radke pkgbase=linux-lts510 pkgver=5.10.189 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 ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman ) # https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc md5sums=('f48059da9de0f48e639c74061b2e890c' 'SKIP' '8b8fa773fe9c7938a76ba07ca2933ed8' 'd31360693fb06a0d69c1f126350baa6d') sha256sums=('4c03516ae1d417571faaef175932d0892710bcbe0173e40550014d043d9098c9' 'SKIP' 'ddc8d7c604a2f8373a25674d06cd377fdf80adca9bd426f4c8a50f3d52403001' '96a72e1652314215da7140956c3abcf495cafd00811eda3cf4ce03ec5f791f1e') 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 $(