#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgbase=linux6.1 # change in naming convention so the following versions will match this pattern pkgver=6.1.37 pkgrel=01 pkgdesc="Linux LTS 6.1 kernel w/ joborun config HAVE_RUST no ipv6 no zstd no IFS no" _srcname=linux-$pkgver ## In anticipation that this will be the next lts we are building it to replace our own linux 5.15 pkg ## linux-lts 5.10 will remain for a while as our default primary kernel url="https://kernel.org/" makedepends=(bc libelf pahole cpio perl tar xz kmod xmlto python-sphinx graphviz imagemagick) # for docs pkg : texlive-latexextra git) options=('!strip') source=( https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign} config # the main kernel config file 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch sha256sums::https://cdn.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc) export KBUILD_BUILD_HOST=joborun export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" prepare() { cd $_srcname echo "Setting version... $pkgver" 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##*/}" [[ $src = *.patch ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done echo "Setting joborun config..." cp ../config .config make olddefconfig diff -u ../config .config || : make -s kernelrelease > version echo "Prepared $pkgbase version $( sha256sums # 46cad712d261a23c8e483a3b79b6a84b9a5f731a8921c9127df35ae35cef1e80 linux-6.1.37.tar.xz sha256sums=(46cad712d261a23c8e483a3b79b6a84b9a5f731a8921c9127df35ae35cef1e80 # linux-6.1.37.tar.xz fa571e221d883633795c2703b0360a31d8fc0e91454d72781e6c61d7a7d93186 # linux-6.1.37.tar.sign fa5843d2f1dda98be761ac4e29462295f21944e8b57c7750667b21b77e42bd6d # config 1bd8388fcb6ed4eec46450c65eb7a0889a8c541f164a39e3064633981a7a4a3d # 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch 5cf0d6d1f912e52ddd63ccf946c0ea3b2d9259aead669d034c09a5455dc484bc) # sha256sums ## a3a1038677930824c149b4ddb61833f9514d1f2db67011d36fb78031a39e5685 linux6.1-6.1.37-01-x86_64.pkg.tar.lz ## fe4af354f2b7654ecebc933cbe6a516d094759447a6bfdf657efdfcdf7833f3e linux6.1-headers-6.1.37-01-x86_64.pkg.tar.lz