# Maintainer: Jan Alexander Steffens (heftig) pkgbase=linux-kentdobias _kver=6.12.10 _zver=2.3.0 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 # LLVM toolchain clang llvm lld # zfs git python-setuptools python-cffi ) depends=(zfs-utils=${_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=('4a516e5ed748537a73cb42ec47fbbeb6df8b1298e8892c29c0e91de79095b297' 'SKIP' 'f9514904f0e9d3fc575ff5b68c17ed94129400a05981d907712b22368c68c72e' 'c3f730f8f2baae9169b107b9aed5e190286e1e2ef42d410935dd9d3691ef5a44') b2sums=('3146bbc9075b84db4c6ad3a64cbb91e3c379d0b8e9e90029eaf6a5bd37ea2b8a0a4ac1227e73d0e8acd20cab392841e046e148523bdb206302ea6c37a934b451' 'SKIP' 'c1d879b9a91ada900217aa8c5c839669c4a9d402d4ed700c3e52470f3047eeac9451cc26b5ff14a783357214af873a08628b44c23ef85aef8918ab7f92ad4d1e' 'c1f523a9c5ea12c3b42ba630600cca30f2e936c325c87a33bb299ec74f090a16952266a97549b3c948c02df5485ad526c9d5dea7e64bf62a2828d72369fb60df') 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 $(