# Maintainer: Jan Alexander Steffens (heftig) pkgbase=linux-kentdobias _kver=6.12.8 _zver=2.3.0-rc4 pkgver="${_kver}_${_zver//-}" pkgrel=1 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 clang llvm lld git python-setuptools python-cffi ) depends=(zfs-utils=${_zver%-*}.${_zver##*-}) options=('!strip') _srcname=linux-${_kver} _srctag=v${_kver%.*}-${_kver##*.} source=( https://cdn.kernel.org/pub/linux/kernel/v${_kver%%.*}.x/${_srcname}.tar.{xz,sign} "git+https://github.com/openzfs/zfs#tag=zfs-${_zver}" config # the main kernel config file ) validpgpkeys=( ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds 647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman A2FF3A36AAA56654109064AB19802F8B0D70FC30 # Jan Alexander Steffens (heftig) 0E3A444DD0760E65901BF59679E824090BD31086 # Jaron Kent-Dobias C33DF142657ED1F7C328A2960AB9E991C6AF658B # Brian Behlendorf 4F3BA9AB6D1F8D683DC2DFB56AD860EED4598027 # Tony Hutter ) # https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc sha256sums=('2291da065ca04b715c89ee50362aec3f021a7414bc963f1b56736682c8122979' 'SKIP' '3647409b10e54cbe0dfe3b43ece564506284d2f69b896d6fe72f744a3afcaf86' '269c00119bf2466d7212d5ddd5cf611be305c08102a5004b221a59a725683e86') b2sums=('62a3f435bbe7d24bea361f2545ba50f8b36030a98bd28d0979b86052d8af34dc7a4c27f7ca2890daba5e5bb51f5848e6b21cd5df4dbbd19919867bf67d38790d' 'SKIP' 'fa7e7f55fe17eb2eb5dd8d60a76bd42fd67e564ca4f9651955011f7af72e4aaf626a11ca21bd7adf455bb520893526a0149d7b6e938d16e422c832178fa08e9d' '3972b97aeb23abb61347af975cf50248c533138d3c95f8fcb9c76379a006d1c0129ef96c111b9c485671a76c144244bb7aa99ae102ec29c7fd3c7507b4ed180d') 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 && ! $src = zfs* ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done echo "Setting config..." cp ../config .config make olddefconfig make prepare cd ../zfs for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" src="${src%.zst}" [[ $src = *.patch && $src = zfs* ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done ./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 $(