From f8843269a5b4a7edfd010015f3f3cae8ad984db6 Mon Sep 17 00:00:00 2001 From: Jan Alexander Steffens Date: Wed, 1 Aug 2018 22:05:58 +0000 Subject: [PATCH] Unbreak 60-linux.hook's extramodules --- PKGBUILD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 5c2501e..daea8c0 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -86,7 +86,8 @@ _package() { # a place for external modules, # with version file for building modules and running depmod from hook - local extradir="$pkgdir/usr/lib/modules/extramodules$_kernelname" + local extramodules="extramodules$_kernelname" + local extradir="$pkgdir/usr/lib/modules/$extramodules" install -Dt "$extradir" -m644 ../version ln -sr "$extradir" "$modulesdir/extramodules" @@ -102,7 +103,7 @@ _package() { local subst=" s|%PKGBASE%|$pkgbase|g s|%KERNVER%|$kernver|g - s|%EXTRAMODULES%|$extradir|g + s|%EXTRAMODULES%|$extramodules|g " # hack to allow specifying an initially nonexisting install file