# Maintainer: Jan Alexander Steffens (heftig) pkgbase=linux-kentdobias _kver=6.6.5 _zver=2.2.2 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 ) options=('!strip') _srcname=linux-${_kver} _srctag=v${_kver%.*}-${_kver##*.} source=( https://cdn.kernel.org/pub/linux/kernel/v${_kver%%.*}.x/${_srcname}.tar.{xz,sign} https://github.com/openzfs/zfs/releases/download/zfs-${_zver}/zfs-${_zver}.tar.{gz,gz.asc} 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=('7c92795854a68d218c576097d50611f8eea86fd55810e0bc27724f020753b19e' 'SKIP' '76bc0547d9ba31d4b0142e417aaaf9f969072c3cb3c1a5b10c8738f39ed12fc9' 'SKIP' '6b24c9ec7d719006e4800a4f82c13912ad90f82187ce4195415a713ad351f245') b2sums=('9d66d720f2f037cfd480835ab38807fe5aabcff09bd210c5cb0dc80bd3e1182434df9f04a286df4e8cbc508ac984ecba12d2098a3296e3aac60afad94c085876' 'SKIP' 'f0619ae42d898d18077096217d0a9ddd7c7378424707aa51d3645661b2889a1459bc4a5e9fe42b6860b2d26e4600da35765b0e741725dafacc2ead2370cad866' 'SKIP' '5d91dc62961a08a5de7c8605cc25927fe6668e3956c41887917ffd250b41abedbdc3d6c5b0c909b3f6a947212689f7b9135d52046ad8de3644ed210bd2a3a8d6') 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-${_zver} 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 $(