# Maintainer: Jan Alexander Steffens (heftig) pkgbase=linux-custom-ultimate pkgver=6.12.1.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 md5sums=('f541bbef36e51ba1e7165137fe1186db' '4884706db6e5843370de9362e1742ee9' '7c0ac5bcdae16821cc24be558f18d144') sha1sums=('3cb9a1a5d0c53d6a5fc5cd9438a36330151b4e5f' '26552825e6ee5c65244e63560c0a2b43ece6f392' 'cd8e93c882a6a52e87a4c47caeaabd1261dc3a62') sha256sums=('0193b1d86dd372ec891bae799f6da20deef16fc199f30080a4ea9de8cef0c619' '92164a6674440aa761aef94a429a55909162ee4806937544549590b67312ac55' '9f29efd7acf37d8e3015029216865fb590362d9589feb91dc84e68fee6dabff0') b2sums=('de3f4dec2fc7e36711c68683d6564d0c3ce6fe728ffa6a629604e2fa9e489dbab45fd6676343f6e68bafbd202a3e814e82a1448b46844e34046b9f82f819b8f4' '47c8b74829e086d080c0dd0d9a033dd4894ee1d7473acb6fe254a6b5b3d0cf4e01ce3967eaca843d126f1ce54fade4f3ae64f2df29719cff88702d5e4cd2ca4f' '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..." cp ../config .config make oldconfig diff -u ../config .config || : make -s kernelrelease > version echo "Prepared $pkgbase version $(