# Maintainer: Jaron Kent-Dobias # Contributor: Vasily Khoruzhick # Contributor: Jan Alexander Steffens (heftig) pkgbase=linux-pinephone pkgver=6.11.megi1 pkgrel=1 pkgdesc='Pinephone Linux' url='https://git.kent-dobias.com/system/linux' arch=(aarch64) license=(GPL2) makedepends=( bc cpio gettext libelf pahole perl python tar xz dtc clang llvm lld ) options=('!strip') _srcname=kentdobias-linux _srctag=v${pkgver%.*}-${pkgver##*.} source=( "$_srcname::git+file:///home/pants/dev/linux?signed#tag=$_srctag" config # the main kernel config file dts-pinephone-drop-modem-power-node.patch ) validpgpkeys=( ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds 647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman A2FF3A36AAA56654109064AB19802F8B0D70FC30 # Jan Alexander Steffens (heftig) 0E3A444DD0760E65901BF59679E824090BD31086 # Jaron Kent-Dobias ) # https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc sha256sums=('f755f55bb2866f7a33d0ca69937cb36a6775cf3264b7ca6f2b9fd89158484135' '48c06884ad44d039038c336ca8e821d516221205576e8131079b18ddf8115926' '4438dbb4fc8dd2788da95615cc97394591a6f5dc54851860f912c62fcc934973') b2sums=('ecad7780b4485ad909cb6f0fb5c175e282fb09af6288e957d5e81ee92db53ad33a1feeeb7a4c5561e5d1338b718649ea4accaa2e5dc5e606dd37130593a7c91a' '606212556010c867d253ceec1e12be60a81f31b13bcee21060378f122078cf98df553afc0fae130632aa59f822dcc5d3976a4583e0460cf58a5080cf75470a0b' 'a36eeb201687707a2662158c8ef8920609446d80315d18be4edb94cc5765743dcda0d98548779f2501a7eee4cba1713837dc5ecc5310c977edd3fd678f558414') export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" export ARCH=arm64 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 ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done echo "Setting config..." cp ../config .config make olddefconfig diff -u ../config .config || : make -s kernelrelease > version echo "Prepared $pkgbase version $(