# Maintainer: Jaron Kent-Dobias # Contributor: Vasily Khoruzhick # Contributor: Jan Alexander Steffens (heftig) pkgbase=linux-pinephone pkgver=6.12.9.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=('a9ddcf4f1e26d516171b9d0e7ad78f7c3e5e97a62dbc2547578e0553a00ba891' 'a2c3b02ecc3d6b00205685f61ce5063e0b185e065a92580be35d7a9a1f5c222e' '4438dbb4fc8dd2788da95615cc97394591a6f5dc54851860f912c62fcc934973') b2sums=('c74c4d04d0e64bd714146eb7d0201fc7686852de5876f7f23d28fb9adefaa730d1c1f34ab46772a80ea9442473d1e39b17f15c00da23cf805bf9e409c9a07c8a' '4110686ed87c1f188d310d154ae506686edf4faccb521b473889eb1d68551a32bc7adde181a58d4f44e8f1ecf80fd51ccbb20bcd29803f28a5cd0ed83344528e' '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 $(