# Maintainer: David Runge # Contributor: Joakim Hernberg pkgbase=linux-rt-lts pkgver=5.10.56.49.realtime1 pkgrel=1 pkgdesc='Linux RT LTS' arch=('x86_64') url="https://gitlab.archlinux.org/dvzrv/linux-rt-lts/-/commits/v${pkgver}" license=('GPL2') makedepends=('bc' 'git' 'graphviz' 'imagemagick' 'kmod' 'libelf' 'pahole' 'python-sphinx' 'python-sphinx_rtd_theme' 'xmlto') options=('!strip') source=( "git+https://gitlab.archlinux.org/dvzrv/linux-rt-lts.git/#tag=v${pkgver}?signed" 'config' ) sha512sums=('SKIP' '31c30758582df4a3e7bf1f8fc130a06eda0ae958885961f838b3f28cdceb593671fce4147393b5524f49c3f5f0c807d42acad2a969a6e65c78020585a378ce23') b2sums=('SKIP' '2f07ccbdb7e715ac597c000ed8dad35a508f5a48f56ee1811daa134d636375a595774cef2f121eea8c5ac9f36b6ec1fcc59b99f504f2ea3ceed4a7e529446f93') validpgpkeys=( '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman '5ED9A48FC54C0A22D1D0804CEBC26CDB5A56DE73' # Steven Rostedt (Der Hacker) 'C7E7849466FE2358343588377258734B41C31549' # David Runge ) 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 "${pkgbase}" echo "Setting version..." scripts/setlocalversion --save-scmversion echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname local src for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" # picking up the RT patch src="${src//patch.xz/patch}" [[ $src = *.patch ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done echo "Setting config..." cp ../config .config make olddefconfig # make nconfig make -s kernelrelease > version echo "Prepared $pkgbase version $(