diff --git a/PKGBUILD b/PKGBUILD index 62f1f80835b783671330ef5a05608939d10efb75..3efa85cd5d33aeef4dd7138cbc686ccc4ec8017f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -9,7 +9,7 @@ arch=('x86_64') license=('GPL2') url='http://www.kernel.org' options=('!strip') -makedepends=('kmod' 'git' 'make' 'gcc' 'bc') +makedepends=('kmod' 'git' 'make' 'gcc' 'bc' 'sed') depends=('linux-firmware' 'kernel-install-hook') install=linux-seblu.install source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git#tag=v${pkgver/_/-}" @@ -32,9 +32,9 @@ prepare() { msg2 'Copying config' install "$srcdir/config.$CARCH" .config - # force suffixe in config (must be the right!) - msg2 'Setting kernel suffix' - sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${pkgname#linux*}\"|g" .config + # force suffixe in config (must be the right!) + msg2 'Setting kernel suffix' + sed -ri "s|(CONFIG_LOCALVERSION=).*|\1\"${pkgname#linux*}\"|g" .config # define current build version msg2 'Setting kernel build version'