# Maintainer: Jan Alexander Steffens (heftig) pkgbase=linux-custom-ultimate pkgver=6.10.10.arch1 pkgrel=2 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' '4357739bd66434e6cb3b35481ee1232d' '7c0ac5bcdae16821cc24be558f18d144') sha1sums=('86a9682a45d5d45dbc5f0d67b24c38ba1cc53446' 'ebfdd2249a59e14ccc65365695a65917bf5f7532' 'cd8e93c882a6a52e87a4c47caeaabd1261dc3a62') sha256sums=('e687e735b5eb9efb6d67b42433c93fc9118106a995514f062652873b5e809bcd' '31d6931ddf2b8fef69a2b4b6c1587ca2fd9d77f45915aa0194485efd2c479712' '9f29efd7acf37d8e3015029216865fb590362d9589feb91dc84e68fee6dabff0') b2sums=('8a15910089d080886046b1fd8d57ef28ce872bf428e67ccbc9d5ca92da794d6dee7ab83cc914a499b40962e2990c3b1e5b11ae7d12c1eff7bec548c9a67df03a' '5e622ab7f4464ecdbf80383a3596aec15f22cdb6ef7cdddd1c4a42d20c29c2685fac85136cf1438ee7e44d29da5c069fd7e98b4b997618871245cc3fba5835c6' '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 $(