# Maintainer: NobodyDBG pkgbase=linux-vanilla-selinux-414 pkgname=linux-vanilla-selinux-414 pkgver=4.14.215 pkgrel=1 pkgdesc="Vanilla-Linux-Kernel (4.14) from kernel.org with Selinux enabled." 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 sha512sums=('f668c17b5411c1d9480e9db8fb077e9d14fca39ebfa06fe78eb162080634dbe7f60373f952f578246915ef6239c869c7aa4fa8c00ff4d51079f4058177911190' '858c3fc1e7e0c70be03c1fd22dc63bad35eec36807aeb74000d30a0349946b172bb9d4610b11dd44782ce56767ff7e28ffbb137fbfd57711504189bb3e845dc3' 'a0dc9f9b105c3bba51123f95c4d2900391339db102cacf74f202d84d66835ef7dd4377a14f0b61a06b6317fc6fa6d5b95e4bcd636f5390f0f5b2e565abe75bed' 'fc52feda32be644deeadf267fdff124ffcc0d0870c36e736024a7be0958ba4b50cea5ef0ec33c2681ad00f36b42ebed354fa3e63bd4827acbeedebc39029229c' '7132a74149b39e30f57a0ef70330fbdf8f38a33bd88ba94f1115de098319e41af0ae86091a1e610e209fc87a9823f69da5c883b0a2fd7adc203578cc4ab08733' '06481e0492d8ec0f353672fbd1d71322b105849871975f434f87bcb33ca898f85407403ba935153e5d8cca44fea62bfbb43404871d12f26891579067a36fae19' '2dc6b0ba8f7dbf19d2446c5c5f1823587de89f4e28e9595937dd51a87755099656f2acec50e3e2546ea633ad1bfd1c722e0c2b91eef1d609103d8abdc0a7cbaf' '45fb53a12b3c201ab00ec9358f3f105c25ae049205eeb67583aca0c019560ed99904d39cd035ffd0c8df23b4f7ccca270346432eeeeeaff8956501a7e801d4aa') _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/$(