# Maintainer: David Runge # Contributor: Joakim Hernberg pkgbase=linux-rt-lts pkgver=5.4.102.53.arch1 pkgrel=1 pkgdesc='Linux RT LTS' arch=('x86_64') url="https://wiki.linuxfoundation.org/realtime/start" license=('GPL2') makedepends=('bc' 'cpio' 'git' 'graphviz' 'imagemagick' 'kmod' 'libelf' 'perl' 'python-sphinx' 'python-sphinx_rtd_theme' 'tar' 'xmlto' 'xz') options=('!strip') source=( "git+https://gitlab.archlinux.org/dvzrv/linux-rt-lts.git/#tag=v${pkgver}?signed" 'config' 'sphinx-workaround.patch' ) sha512sums=('SKIP' '2a2f9c403fbedeaa7106921b8a5915495f9c54edf8a8f8b4b2789e4cbe7cfc1bbf54fe70a5438099cc4fa1c4ee26ccaa664551fe9b7ef5dcbfb2e1886423ffa9' '8081673a6594e5fc2fddc98fa434e99817aa822f7136d3c14c8d465fa7b93c9ac5d3a4150a5b632e25b1dc76a814dfa19d8aede37d58b935db288465b6585c58') b2sums=('SKIP' '247e3084eb64db424f9a13eeeda43c40c728384d2e61133b7fa22b9764bfdb4c95e321387406e67fab671b5970bf399383734662178257dca49bb2367821a9b7' '657fd0e70d29eee5518c27af7eec73a18f399215d2a21cf7b92c9914bee16d1e0981c00065ccb12f0534e57af906af63b17221c65a61146ec8894c88420fa56c') 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 $(