#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgbase=linux pkgver=5.15.29 pkgrel=01 pkgdesc='Linux 5.15 no zstd no ipv6' url="https://www.kernel.org/" arch=(x86_64) makedepends=( bc kmod libelf pahole cpio perl tar xz xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick) options=('!strip') _srcname=linux-$pkgver 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 0002-PCI_Add_more_NVIDIA_controllers_to_the_MSI_masking_quirk.patch 0003-iommu_intel_do_deep_dma-unmapping_to_avoid_kernel-flooding.patch 0004-cpufreq_intel_pstate_ITMT_support_for_overclocked_system.patch 0005-Bluetooth_btintel_Fix_bdaddress_comparison_with_garbage_value.patch 0006-lg-laptop_Recognize_more_models.patch 0007_fix_NFSv4_mount_regression.diff sha256sums) export KBUILD_BUILD_HOST=joborunlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" prepare() { cd $_srcname # fix NFSv4 mounting issue regression - FS#73838 / FS#73860 # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/patch/?id=6f2836341d8a39e1e000572b10959347d7e61fd9 patch -Rp1 -i ../0007_fix_NFSv4_mount_regression.diff 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##*/}" [[ $src = *.patch ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done echo "Setting config..." cp ../config .config make olddefconfig # diff -u ../config .config || : #return 1 make -s kernelrelease > version echo "Prepared $pkgbase version $(