# Maintainer: Jaron Kent-Dobias # Contributor: Vasily Khoruzhick # Contributor: Jan Alexander Steffens (heftig) pkgbase=linux-pinephone pkgver=6.12.8.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 0001-arm64-dts-allwinner-a64-h5-Add-CPU-idle-states.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=('bc55e72ec8656c9d6f9af7d1a55a91b61c00a88a180d14915ab20fb41def2c19' 'a2c3b02ecc3d6b00205685f61ce5063e0b185e065a92580be35d7a9a1f5c222e' '4438dbb4fc8dd2788da95615cc97394591a6f5dc54851860f912c62fcc934973' 'b63e4474efea0bfa183e3c6c1e65eadb096f9c06d60b6644f9b2db899e2d2061') b2sums=('25ae4ea2c832b187a296a4feb68a2a1b91619047f67dd08516b9d0a9d3677da693d82839d6caa2580b7314947bb7c5f825c9eec21a1a38cf047e1e06e591d396' '4110686ed87c1f188d310d154ae506686edf4faccb521b473889eb1d68551a32bc7adde181a58d4f44e8f1ecf80fd51ccbb20bcd29803f28a5cd0ed83344528e' 'a36eeb201687707a2662158c8ef8920609446d80315d18be4edb94cc5765743dcda0d98548779f2501a7eee4cba1713837dc5ecc5310c977edd3fd678f558414' 'cb15e6c21c4770226869149099b46c2b20819ae4d66cdf1a8e02c782b451503fef4289fa00a4c0fc4ef60b09cf608c8aff7658fe8e0cbd6471446f75937c4758') 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 $(