# Maintainer: Jan Alexander Steffens (heftig) pkgbase=linux-custom-ultimate pkgver=6.12.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 md5sums=('59a4adb192e8a88cc6bdea7912c409c0' '25a41237ef1f48123ac5657bdb77eb1f' '7c0ac5bcdae16821cc24be558f18d144') sha1sums=('614c7d549be86d3eec547b069055d44c2ab955e1' 'cb11d29ef75d4dc8867902acfe03e20d1aa3787c' 'cd8e93c882a6a52e87a4c47caeaabd1261dc3a62') sha256sums=('c89809cc777d50f1ea484a118630281a26383707a0e752c96fd834f6e765deae' '684f2140b501590203c7146baf5977e433cd3acd6401e61a6ad4640a44166b37' '9f29efd7acf37d8e3015029216865fb590362d9589feb91dc84e68fee6dabff0') b2sums=('1caaf9aed83a69a0c8b17ca923a97848cbb3b042d023aaaa7462c24f66f0d1b8a4fa42e2f3b9248ab8c57000a0e68d185072b0c88be7bcd93175f3e88ac76955' '222a85e27f9a353a40bd5169bda82d01402228f04a75a277742265f39526effacef6c5dbd7b5729a2c350e822b5c345130f4a34e50942bcd5d12ca00bba53f29' '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 $(