# Maintainer: # Contributor: éclairevoyant # Contributor: Mark Weiman (markzz) # Contributor: Katelyn Schiesser (slowbro) # Contributor: Dan Ziemba # Upstream: Jan Alexander Steffens (heftig) _gitname="linux" _pkgname="$_gitname-vfio" pkgbase="$_pkgname" pkgver=6.6.9 pkgrel=1 pkgdesc='Linux' url='https://www.kernel.org' arch=(x86_64) license=(GPL2) makedepends=( bc cpio gettext libelf pahole perl python tar xz # htmldocs graphviz imagemagick python-sphinx texlive-latexextra ) options=('!strip') _srcname=linux-$pkgver _srctag=v$pkgver-arch1 _dl_url_arch='https://github.com/archlinux/linux' source=( https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign} $_dl_url_arch/releases/download/$_srctag/linux-$_srctag.patch.zst{,.sig} config # the main kernel config file 1001-add-acs-overrides.patch # updated from https://lkml.org/lkml/2013/5/30/513 1002-i915-vga-arbiter.patch # updated from https://lkml.org/lkml/2014/5/9/517 ) validpgpkeys=( ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds 647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman A2FF3A36AAA56654109064AB19802F8B0D70FC30 # Jan Alexander Steffens (heftig) ) sha256sums=( '8ebc65af0cfc891ba63dce0546583da728434db0f5f6a54d979f25ec47f548b3' 'SKIP' 'da9d15179f3a0e1b19c57344c6e10b886d598f5256ea6f82adbe2940ccf68b34' 'SKIP' '18fcff9fa723cef2feb654dae966a149f0ef0fea9dda1780d3de0ff07d4f8ab7' 'f342986bd27980c96c952b0dd8103d3e21a942d87f18df1308fab370e20010fb' '2a3c732d4d61a631c98b2a3e4afb1fa5dbf8be5c43519b2a59d0e65170c9d8db' ) export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" 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 echo "Applying patch $src..." patch -Np1 -F100 -i "../$src" done # remove extra version suffix sed -E 's&^(EXTRAVERSION =).*$&\1&' -i Makefile echo "Setting config..." cp ../config .config make olddefconfig diff -u ../config .config || : make -s kernelrelease > version echo "Prepared $pkgbase version $(