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