# Maintainer: Jan Alexander Steffens (heftig) pkgbase=linux-kentdobias _kver=6.5.11 _zver=2.2.0 pkgver="${_kver}_${_zver}" pkgrel=3 pkgdesc='Linux' url='https://github.com/archlinux/linux' arch=(x86_64) license=(GPL2) makedepends=( bc cpio gettext libelf pahole perl python tar xz # htmldocs graphviz imagemagick python-sphinx texlive-latexextra git clang llvm lld ) options=('!strip') _srcname=linux-${_kver} _srctag=v${_kver%.*}-${_kver##*.} source=( https://cdn.kernel.org/pub/linux/kernel/v${_kver%%.*}.x/${_srcname}.tar.{xz,sign} config # the main kernel config file ) validpgpkeys=( ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds 647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman A2FF3A36AAA56654109064AB19802F8B0D70FC30 # Jan Alexander Steffens (heftig) 0E3A444DD0760E65901BF59679E824090BD31086 # Jaron Kent-Dobias ) # https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc sha256sums=('2ee24af9282b80923b2da56b70aad7df2e8ee4e3f076452e05ba66be2059b519' 'SKIP' '13d39a5095e090486ee97cffec0dd06bb68298a24a6a5b6bfa3a37bb38961875') b2sums=('7e3fe230425b7ee403571beff74e4b4e1668aa53c388e2c00b9e5f097d528467f40ae487b61947ad2432c8f64d26690c3996e14cda25e0d43a5c456e50031539' 'SKIP' '77628768c16ae42967a003d33687175a0b1be40122a4a2ae86da0472f2a39ca815746523ca7c74c197f18fe0d3a36e0dc62374e32fd4f1e4a7309e7206671fc2') export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" export LLVM=1 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 olddefconfig make prepare cd ../zfs-${_zver} ./autogen.sh KERNEL_LLVM=1 CC=clang ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --with-mounthelperdir=/usr/bin \ --libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \ --with-udevdir=/usr/lib/udev --libexecdir=/usr/lib \ --enable-systemd --enable-pyzfs \ --with-zfsexecdir=/usr/lib/zfs --localstatedir=/var \ --enable-linux-builtin --with-linux=../$_srcname ./copy-builtin ../$_srcname cd ../$_srcname cp ../config .config make olddefconfig diff -u ../config .config || : make -s kernelrelease > version echo "Prepared $pkgbase version $(