# Maintainer: Jan Alexander Steffens (heftig) pkgbase=linux-custom-ultimate pkgver=6.11.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=('28d4c44c62414ef7f0c8aa1fd5667937' '4884706db6e5843370de9362e1742ee9' '7c0ac5bcdae16821cc24be558f18d144') sha1sums=('ede12d1456e2aa599abfea96b6ddc1a05f493b13' '26552825e6ee5c65244e63560c0a2b43ece6f392' 'cd8e93c882a6a52e87a4c47caeaabd1261dc3a62') sha256sums=('2a372373b4e1eaf55f2a2f104bfa91477ec9b263acf8f3aed08f4d8bdc78ee3d' '92164a6674440aa761aef94a429a55909162ee4806937544549590b67312ac55' '9f29efd7acf37d8e3015029216865fb590362d9589feb91dc84e68fee6dabff0') b2sums=('ac9927d74542a2d244b9d683920363ec2dbbe851ae0e069b278f1a0ba82c58b00f0f0312104b46f1b8c06585c2e6acb7eb1e63bd28499891f629c00f9a32f6b5' '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 $(