# Maintainer: NobodyDBG pkgbase=linux-vanilla-selinux-414 pkgname=linux-vanilla-selinux-414 pkgver=4.14.205 pkgrel=1 pkgdesc="Vanilla-Linux-Kernel (4.14) from kernel.org with Selinux enabled. Without docs. Will be fixed in the next builds (Problem with Sphinx)." arch=('x86_64') url="https://www.kernel.org/" license=('GPL2') makedepends=(bc kmod libelf xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick git) options=('!strip') _srcname=linux-vailla-selinux-419${pkgver} _origsrcname=linux-${pkgver} source=(https://www.kernel.org/pub/linux/kernel/v4.x/${_origsrcname}.tar.{xz,sign} 'config' # the main kernel config file 'linux-vanilla-selinux-414.install' # Installfile '60-linux.hook' # pacman hook for depmod '90-linux.hook' # pacman hook for initramfs regeneration 'linux-vanilla-selinux-414.preset' # standard config files for mkinitcpio ramdisk 'sphinx-workaround.patch' # patch for Sphinx HTMLDOCS ) validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman (Linux kernel stable release signing key) ) # https://www.kernel.org/pub/linux/kernel/v4.x/sha256sums.asc sha256sums=('8c55acc839f910b2488bc61b753f6b2f55461b68d55788aadfbc5f1f0797ca54' '4ac57d6a5e9282f160cf26b11ab747ae9b23592f3771f1146ca57ff603f67da4' 'cdc1a6311efaad1e40f00ffcea99d0d86717dcdb9b785109da75d85f5ae4afd7' 'f9b13f3c00be95205ccb77ead42881ecbf0f7ba0d0ad12af294e054272859d81' '5c7af03d9b4cade110543ba706bcbd49fc6447726258b4bfec0edff7ca9994d1' '9089c8d44982dc03b0dde47632f8aa2fda14754b911acbc266feee85da94b0f5' 'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65' 'c95ff43a104590c467522183bda330b0678c244c4f5d6fe0ad85386cb4527fb1') _kernelname=${pkgbase#} : ${_kernelname:=-Arch-vanilla-selinux-414} prepare() { cd $_origsrcname msg2 "Setting version..." scripts/setlocalversion --save-scmversion echo "-$pkgrel" > localversion.10-pkgrel echo "$_kernelname" > localversion.20-pkgname local src for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" [[ $src = *.patch ]] || continue msg2 "Applying patch $src..." patch -Np1 < "../$src" done msg2 "Setting config..." cp ../config .config make olddefconfig make -s kernelrelease > version msg2 "Prepared %s version %s" "$pkgbase" "$( "${startdir}/config.last" } build() { cd $_origsrcname make all make htmldocs } _package() { pkgdesc="The ${pkgbase/linux/Linux} kernel and modules" depends=(coreutils kmod initramfs) optdepends=('crda: to set the correct wireless channels of your country' 'linux-firmware: firmware images needed for some devices') backup=("etc/mkinitcpio.d/$pkgbase.preset") install=$pkgbase.install cd $_origsrcname local kernver="$( "$startdir/$install.pkg" true && install=$install.pkg # fill in mkinitcpio preset and pacman hooks sed "$subst" ../$pkgbase.preset | install -Dm644 /dev/stdin \ "$pkgdir/etc/mkinitcpio.d/$pkgbase.preset" sed "$subst" ../60-linux.hook | install -Dm644 /dev/stdin \ "$pkgdir/usr/share/libalpm/hooks/60-$pkgbase.hook" sed "$subst" ../90-linux.hook | install -Dm644 /dev/stdin \ "$pkgdir/usr/share/libalpm/hooks/90-$pkgbase.hook" msg2 "Fixing permissions..." chmod -Rc u=rwX,go=rX "$pkgdir" } _package-headers() { pkgdesc="Header files and scripts for building modules for ${pkgbase/linux/Linux} kernel" cd $_origsrcname local builddir="$pkgdir/usr/lib/modules/$(