# Maintainer: Jan Alexander Steffens (heftig) pkgbase=linux-custom-ultimate pkgver=6.10.3.arch1 pkgrel=1 pkgdesc='Linux' arch=(x86_64) license=(GPL-2.0-only) makedepends=( bc cpio gettext libelf pahole perl python tar xz # htmldocs graphviz imagemagick python-sphinx python-yaml texlive-latexextra ) options=( !debug !strip ) _srcname=linux-${pkgver%.*} _srctag=v${pkgver%.*}-${pkgver##*.} source=( https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz config # the main kernel config file defaultmaxASLR.patch ) # https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc sha256sums=('fa5f22fd67dd05812d39dca579320c493048e26c4a556048a12385e7ae6fc698' '73393fc8f602c846315ab4baeb4806977a881cc1cb50600b59947cbda7289d19' '9f29efd7acf37d8e3015029216865fb590362d9589feb91dc84e68fee6dabff0') b2sums=('e114bbaea91d03efa318f5a85c11e28257defa5f0c8467d3a5d467a7985bdfd7c23a5f54856c85afe800c32694f382df9b147484a3aa85e1e3f4efefbd80b564' '1d5338092a4ce44b784a3833b63c35cd6df13301990b605560423a5fa65dec7d910e5f8a5dd018886a13feada89ada7eadfb9fb5e28080bb1c87d41bacd02eb8' '30f9ecc8011b67e89166a01cf15c6994ba72cb7277cf8cce3461db66c3f0dfa77f396976dc82b6b78c723845282ea721a07a8fb1f3baff43dbf46bee10940b1a') 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..." echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname local src for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" src="${src%.zst}" [[ $src = *.patch ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done echo "Setting config..." make olddefconfig cp ../config .config diff -u ../config .config || : make -s kernelrelease > version echo "Prepared $pkgbase version $(