From dfcc799a24a32fa9befc46fdb399860a4c0f0bef Mon Sep 17 00:00:00 2001 From: David P Date: Wed, 20 Dec 2017 15:14:38 -0300 Subject: add substitutions for armv7h and fix extramodules symlink --- libre/linux-libre/PKGBUILD | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'libre/linux-libre/PKGBUILD') diff --git a/libre/linux-libre/PKGBUILD b/libre/linux-libre/PKGBUILD index 1004f2de9..2624175c7 100644 --- a/libre/linux-libre/PKGBUILD +++ b/libre/linux-libre/PKGBUILD @@ -210,7 +210,7 @@ _package() { fi # make room for external modules - local _extramodules="extramodules-${_basekernel}${_kernelname:--ARCH}" + local _extramodules="extramodules-${_basekernel}${_kernelname}" ln -s "../${_extramodules}" "${pkgdir}/usr/lib/modules/${_kernver}/extramodules" # add real version for building modules and running depmod from hook @@ -229,11 +229,20 @@ _package() { fi # sed expression for following substitutions + if [ "${CARCH}" = "armv7h" ]; then + local _subst=" + s|/boot/vmlinuz-%PKGBASE%|${_kernver}|g + s|%PKGBASE%|${pkgbase}|g + s|%KERNVER%|${_kernver}|g + s|%EXTRAMODULES%|${_extramodules}|g + " + elif [ "${CARCH}" = "x86_64" ] || [ "${CARCH}" = "i686" ]; then local _subst=" s|%PKGBASE%|${pkgbase}|g s|%KERNVER%|${_kernver}|g s|%EXTRAMODULES%|${_extramodules}|g " + fi # hack to allow specifying an initially nonexisting install file sed "${_subst}" "${startdir}/${install}" > "${startdir}/${install}.pkg" -- cgit v1.2.3