summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2017-12-20 15:14:38 -0300
committerDavid P <megver83@parabola.nu>2017-12-20 15:16:44 -0300
commitdfcc799a24a32fa9befc46fdb399860a4c0f0bef (patch)
tree9f665ad9c3fdffd6c5b5c5d3959b1e7c056b5d48 /libre
parentd8da3a664204c257d5d181e8ba286c0dd0f50870 (diff)
downloadabslibre-dfcc799a24a32fa9befc46fdb399860a4c0f0bef.tar.gz
abslibre-dfcc799a24a32fa9befc46fdb399860a4c0f0bef.tar.bz2
abslibre-dfcc799a24a32fa9befc46fdb399860a4c0f0bef.zip
add substitutions for armv7h and fix extramodules symlink
Diffstat (limited to 'libre')
-rw-r--r--libre/linux-libre/PKGBUILD11
1 files changed, 10 insertions, 1 deletions
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"