# Maintainer: Jaron Kent-Dobias # Contributor: Vasily Khoruzhick # Contributor: Jan Alexander Steffens (heftig) pkgbase=linux-pinephone pkgver=6.7.3.megi1 pkgrel=2 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=linux-${pkgver%.*} _srctag=v${pkgver%.*}-${pkgver##*.} source=( https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign} "linux-$_srctag.patch::$url/rawdiff/?id=$_srctag&id2=v${pkgver%.*}" 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=('b7f08c652747574a3aa26e317d7a8f23ffab3fb645e1b1533b215dcfd5742b44' 'SKIP' '736518aa936c42ffca627b914e87da343e87edebc2048d8476fdf7e2de94151c' '61319499a75817a28ac5bcdb0e1e642867e563bd7b24101a151115c3a219bf41' '4438dbb4fc8dd2788da95615cc97394591a6f5dc54851860f912c62fcc934973') b2sums=('2dea0685e5c9b279beb7661f4efa91ccd662d55eb7c5a69aff52fc74bbb574fcb490a9abcc44d895583ca21b3e6860b3c5e9c35daae66b22c4fe97cab44b2a75' 'SKIP' '11b8c0a99dc4dba40dedcc2c0d22c4a299f23c048f4e6225f6afbd4a93c4926244f314408efca15597c60bd5a001d6f011f39621ee3f7f0f69c9639ba4a92bca' '9d42ed5046d679eb4e7193cbed471774bb8a5701d55b919a514eda4d6ebf63856a44cfff0ad5061cfcb73b56a9b11fd6d4ff392793aa174b2248bfe678714fa4' '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 $(