# Maintainer: Markus Fritsche # Forked from: linux-pinetab2 by Danct12 # Original Contributor: Jan Alexander Steffens (heftig) # # linux-pinetab2-danctnix-besser: linux-pinetab2 + the BESser bes2600 # driver patchset. Soft-upstream fork of linux-pinetab2 — drop-in # replacement, same kernel version, only the bes2600 staging driver # differs. See git.reauktion.de/marfrit/besser and # git.reauktion.de/marfrit/bes2600-dkms for full provenance. # # ───────────────────────────────────────────────────────────────────── # kernel-agent flow (effective pkgrel=4): # # The single 0001-bes2600-besser-kernel-agent-cumulative.patch is # regenerated by `ka-promote ohm` in # git.reauktion.de/marfrit/kernel-agent against fleet/ohm.yaml. Its # b2sum below MUST match the cumulative.b2sum recorded in the # co-located manifest.lock. Sibling manifest.lock pins the source-of- # truth manifest sha256 and per-include patch sha256s. # # To update for a new patch in the manifest: # 1. Edit kernel-agent:fleet/ohm.yaml (add/remove includes) # 2. `ka-promote ohm` → writes new cumulative.patch + manifest.lock # to kernel-agent/build/ohm/v7.0-danctnix1/ # 3. Copy both files into this directory (replacing existing ones) # 4. Update the b2sum in this PKGBUILD for the cumulative # 5. Bump pkgrel # ───────────────────────────────────────────────────────────────────── pkgbase=linux-pinetab2-danctnix-besser pkgver=7.0.danctnix1 pkgrel=4 pkgdesc='PineTab2 (BESser bes2600 driver patchset, kernel-agent managed)' _srcname=linux-pinetab2 _srctag=v${pkgver%.*}-${pkgver##*.} arch=(aarch64) _url_git="https://codeberg.org/DanctNIX/${_srcname}" url="${_url_git}/commits/tag/$_srctag" license=(GPL-2.0-only) makedepends=( bc cpio gettext git libelf pahole perl python tar xz ) options=( !debug !strip ) source=( https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-${pkgver%.*}.tar.{xz,sign} ${_url_git}/releases/download/${_srctag}/${_srctag}.patch.zst{,.sig} 0001-bes2600-besser-kernel-agent-cumulative.patch config ) validpgpkeys=( ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds 647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman F09A933C0FE0331E558CA4E166CAB7EAA45DD781 # Danct12 ) b2sums=('3d9795083c8938f80f480de0d10bfd9c525640e59d5c7f22983de3f12ee42c84c31be902cafb05579ddb1c32bac5ed06b0d4953f9705450be185bd2d9ab08f89' 'SKIP' '71fe98221e802b315e54b4b10d3e8c8f376695a36bae3541d876e5776a37f3fa33c8f8dfa6e51fcbd6f5396add02e5166634165f2351836a0ea0453c172fe56c' 'SKIP' 'bd42cd39106298879eeb294307963e26c8b48aef5b14c0b6e6ac24131439336617b4f6fa901064a3d0fdeb51a9fe0653a7fd8af602a08055474ba6a84cd2663d' '656a998ab40cb85ee4c00f087b071a91632a6c091da2c84b0f74236b51d2dea6e9db6886625f80ad81dc249d8494ec47cd79d6dd9ea4f5e44f3cde857f861e10') export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" prepare() { cd linux-${pkgver%.*} 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 $(