# Maintainer: Maximilian Luz pkgbase=linux-surface-lts pkgver=4.19.141 pkgrel=1 pkgdesc='LTS Linux' url="https://www.kernel.org/" arch=(x86_64) license=(GPL2) makedepends=( bc kmod libelf xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick ) options=('!strip') _srcname=linux-$pkgver source=( https://www.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign} config # the main kernel config file 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch surface.config 0001-surface3-power.patch 0002-surface3-touchscreen-dma-fix.patch 0003-surface3-oemb.patch 0004-surface-buttons.patch 0005-suspend.patch 0006-ipts.patch 0007-wifi.patch 0008-surface-sam.patch 0009-surface-sam-over-hid.patch 0010-surface-gpe.patch ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman ) # https://www.kernel.org/pub/linux/kernel/v4.x/sha256sums.asc sha256sums=('9c4ebf21fe949f80fbcfbbd6e7fe181040d325e89475e230ab53ef01f9d55605' 'SKIP' '4e68572e7cc4c5368f0236e0792660ae8498373988625dca46e509399a7eaea6' 'a13581d3c6dc595206e4fe7fcf6b542e7a1bdbe96101f0f010fc5be49f99baf2' 'c04b7652fbc7dbca65bfd64e7123adcb6da9dae0ab33d85be58907b5b9de1c66' '084ae7ae947331a4b0fd8bcf8a34c5f3bf2f09eb1a20a89854a5653407dfcecd' '8162b7aee344326571b4349e23b40103f0e11a0bfdbe46f11574ec3a74762eea' '229ee719ab0563a39224a6809b41eb6a9d4f66db4ee77759d9a51ec91b0a196f' '8594e7da746913a3daf991940a616825604ad988eb7dba1c6cbd6d062b05796d' 'dd2d494618ae67dec33291dfda0ef18628e0ada8ff16505546ec46048b19637f' 'b641953a0f5e679519d3ecddab842414ed74bdeb0f37540aa0d625939a2ed0e1' '29b3e2e5752a355e8af0936685d34c48b93a7fc3bda91e85b023884e58b6b08d' '9d6ed8c0fa487af359eb3595ecf321b9ccc34c42b2335d9749297b27efda701d' '5bcaa733602a96898031aa6a5233bf2a9a4cbb6a38351df24a455e397b6e66c3' 'b2491c99b832e1646078560e84e5472258e5532847ffe1ae5f65a8c1b124dddc') export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" # optional certificate and key for secure boot signing _mok_crt="$PWD/MOK.crt" _mok_key="$PWD/MOK.key" prepare() { cd $_srcname msg2 "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 msg2 "Applying patch $src..." patch -Np1 < "../$src" done msg2 "Setting config..." # cp ../config .config # merge the two configs together ./scripts/kconfig/merge_config.sh -m ../config ../surface.config make olddefconfig make -s kernelrelease > version msg2 "Prepared %s version %s" "$pkgbase" "$(