# Maintainer: Jan Alexander Steffens (heftig) pkgbase=linux-custom-ultimate pkgver=6.10.10.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=('50b56555bd808d98a9da978b7f3319c3' '7cf7e7b4b13d6d7ed69d4746b9c91c36' '7c0ac5bcdae16821cc24be558f18d144') sha1sums=('86a9682a45d5d45dbc5f0d67b24c38ba1cc53446' 'aa0f32f1d0e41aa721dc3f28f4a8e03cd4cfa9c9' 'cd8e93c882a6a52e87a4c47caeaabd1261dc3a62') sha256sums=('e687e735b5eb9efb6d67b42433c93fc9118106a995514f062652873b5e809bcd' 'ec5a53705c3579c887bb074e6027f7ee17141664276241a02c9f267b57b62791' '9f29efd7acf37d8e3015029216865fb590362d9589feb91dc84e68fee6dabff0') b2sums=('8a15910089d080886046b1fd8d57ef28ce872bf428e67ccbc9d5ca92da794d6dee7ab83cc914a499b40962e2990c3b1e5b11ae7d12c1eff7bec548c9a67df03a' 'a635ef1bd251b9fbd34e8bda7630d4f2c94d9349fd2dec641d3391e58a8a78ff03fa92b1968b412e9b623e2a03cda74ab92d928a9cc2e7de1d3f436856eb40ad' '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 $(