# Maintainer: David Runge # Contributor: Joakim Hernberg pkgbase=linux-rt-lts pkgver=5.10.78.55.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=( "https://gitlab.archlinux.org/dvzrv/linux-rt-lts/-/archive/v${pkgver}/linux-rt-lts-v${pkgver}.tar.bz2" 'config' ) sha512sums=('SKIP' '8999f9ebc68bf909cbc03d2448722e966d9e1dfd948859d78f1c33d0c8516de114fc9835e369854ecf9580a47f753557113df71c6771ae0eef92277cc44f5a3f') b2sums=('SKIP' '3c7d61589d859cc01400cd35321dfd8afcb53016c186412ac78b44d322335d94f459ac49f817c43c353a5c3709a7f2bf582e41d2243c51650618bbf9474263e9') 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}-v${pkgver}" 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 $(