pkgname=(linux linux-headers linux-docs) pkgbase=linux pkgver=6.12.8 pkgrel=1 pkgdesc="The linux kernel and modules" arch=('x86_64') url="https://www.kernel.org/" license=('GPL-2.0-only') makedepends=( 'bc' 'coreutils' 'cpio' 'dracut' 'gettext' 'kmod' 'libelf' 'linux-firmware' 'pahole' 'perl' 'python' 'tar' 'xz' ) options=('!strip') source=(https://cdn.kernel.org/pub/linux/kernel/v6.x/${pkgbase}-${pkgver}.tar.xz config-${pkgver}) sha256sums=(2291da065ca04b715c89ee50362aec3f021a7414bc963f1b56736682c8122979 bd04cc504f80f2aa43a2095b152eb6dad4bfdb0a131fc5121d6ec295e9c86af2) export KBUILD_BUILD_HOST=flarebird export KBUILD_BUILD_USER=${pkgbase} export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" prepare() { cd ${pkgbase}-${pkgver} echo "Setting version..." echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname echo "Setting config..." cp ${srcdir}/config-${pkgver} .config make olddefconfig diff -u ${srcdir}/config-${pkgver} .config || : make -s kernelrelease > version echo "Prepared ${pkgbase} version $(