diff --git a/linux/PKGBUILD b/linux/PKGBUILD index 4f25b89..1100fcb 100644 --- a/linux/PKGBUILD +++ b/linux/PKGBUILD @@ -5,7 +5,7 @@ pkgbase=linux # Build stock -ARCH kernel #pkgbase=linux-custom # Build kernel with a different name _srcname=linux -pkgver=4.15.r0.gd8a5b80568a9 +pkgver=4.16rc1.r10.g178e834c47b0 pkgrel=1 arch=('x86_64') url="https://www.kernel.org/" @@ -20,12 +20,13 @@ source=( 'linux.preset' # standard config files for mkinitcpio ramdisk ) sha256sums=('SKIP' - '8e80162a2d8952b7e0a4967647eed940b2b983e950bfe630918bd90cb1107a25' + '699ad86e5c6076fc5c544d72191efb7eb302f68169dad8495add0f1d156203ab' 'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21' '75f99f5239e03238f88d1a834c50043ec32b1dc568f2cc291b07d04718483919' 'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65') _kernelname=${pkgbase#linux} +: ${_kernelname:=-ARCH} pkgver() { cd "${_srcname}" @@ -39,20 +40,16 @@ prepare() { # add upstream patch #patch -p1 -i ../patch-${pkgver} - # security patches - # add latest fixes from stable queue, if needed # http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git - cp -Tf ../config .config - - if [ "${_kernelname}" != "" ]; then - sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config - sed -i "s|CONFIG_LOCALVERSION_AUTO=.*|CONFIG_LOCALVERSION_AUTO=n|" ./.config - fi + cat ../config - >.config <