# 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 (race-fix, lock-removal, attribution-restore, # fossil-cleanup; +73% throughput vs the in-tree baseline). 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. pkgbase=linux-pinetab2-danctnix-besser pkgver=7.0.danctnix1 pkgrel=1 pkgdesc='PineTab2 (BESser bes2600 driver patchset)' _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-cumulative-series.patch config # the main kernel config file ) validpgpkeys=( ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds 647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman F09A933C0FE0331E558CA4E166CAB7EAA45DD781 # Danct12 ) b2sums=('3d9795083c8938f80f480de0d10bfd9c525640e59d5c7f22983de3f12ee42c84c31be902cafb05579ddb1c32bac5ed06b0d4953f9705450be185bd2d9ab08f89' 'SKIP' '71fe98221e802b315e54b4b10d3e8c8f376695a36bae3541d876e5776a37f3fa33c8f8dfa6e51fcbd6f5396add02e5166634165f2351836a0ea0453c172fe56c' 'SKIP' 'fca0a5badf762d5dbc085261cccc07ddeef96384d2ae0a426fb0412acd7a180e068cabd59f01342b7575d41889afc0f47dfbc9256801ab809f746278e6dab510' '19c35c69a4ed40635fb6ad108d2e0ed3d0edc682972255b4a9b719d09e377aa916e533b2e29f4aed256d3a393d77df9e11b661b690acd96edcf61eafe016f55b') 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 $(