From 79cb0586aa890b90eca158047e98a15492d68473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Thu, 17 Nov 2016 04:17:04 +0100 Subject: [PATCH] Sed improvments - add deps - shorter replacement line --- PKGBUILD | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 62f1f80..3efa85c 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' -- GitLab