# Maintainer: Mike Yuan pkgbase=linux-zen-g14 _pkgbase=linux-zen pkgver=5.7.10.zen1 pkgrel=3 pkgdesc='Linux ZEN with patch for Zephyrus G14 (GA401IV)' _srctag=v${pkgver%.*}-${pkgver##*.} url="https://github.com/zen-kernel/zen-kernel/commits/$_srctag" arch=(x86_64) license=(GPL2) makedepends=( bc kmod libelf pahole xmlto git ) options=('!strip') _srcname=zen-kernel source=( "$_srcname::git+https://github.com/zen-kernel/zen-kernel?signed#tag=$_srctag" config # the main kernel config file i8042.patch asus-nb-wmi.patch "https://github.com/dolohow/uksm/raw/master/v5.x/uksm-5.7.patch" ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman 'A2FF3A36AAA56654109064AB19802F8B0D70FC30' # Jan Alexander Steffens (heftig) ) sha256sums=('SKIP' '4c278bafc2e5a04fd584ca45ddfe8bdacf52d8f5a2aac9df17d7a20479e893bf' '2273fae30f712aa554dd10294a072b4934265b56e6146493a07c22c7df4af61d' 'c59b9c2f8bc6e46ae2ebf0474afe64e9deea69ad20eecace64b8f194afc72ae0' 'c28dc0d30bba3eedae9f5cf98a686bdfb25a0326df4e8c417d37a36597d21b37') 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..." scripts/setlocalversion --save-scmversion echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname local src for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" [[ $src = *.patch ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done echo "Setting config..." cp ../config .config make olddefconfig make -s kernelrelease > version echo "Prepared $pkgbase version $(