summaryrefslogtreecommitdiff
path: root/kernels/linux-libre-rt/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'kernels/linux-libre-rt/PKGBUILD')
-rw-r--r--kernels/linux-libre-rt/PKGBUILD26
1 files changed, 15 insertions, 11 deletions
diff --git a/kernels/linux-libre-rt/PKGBUILD b/kernels/linux-libre-rt/PKGBUILD
index 11070f889..7064443db 100644
--- a/kernels/linux-libre-rt/PKGBUILD
+++ b/kernels/linux-libre-rt/PKGBUILD
@@ -16,7 +16,9 @@ _pkgver=3.14.12-gnu
_rtbasever=3.14
_rtpatchver=rt9
-_replaces=('kernel26%' 'linux%') # '%' gets replaced with _kernelname
+_replacesarchkernel=('linux%') # '%' gets replaced with _kernelname
+_replacesoldkernels=('kernel26%' 'kernel26-libre%') # '%' gets replaced with _kernelname
+_replacesoldmodules=() # '%' gets replaced with _kernelname
_srcname=linux-${_pkgbasever%-*}
_archpkgver=${_pkgver%-*}_${_rtpatchver}
@@ -62,7 +64,9 @@ sha256sums=('477555c709b9407fe37dbd70d3331ff9dde1f9d874aba2741f138d07ae6f281b'
'3baf1279805edd561e80877a1baf32d98fe07220dc6e7cb4ced73ab531947bc4')
_kernelname=${pkgbase#linux-libre}
-_replaces=("${_replaces[@]/\%/${_kernelname}}")
+_replacesarchkernel=("${_replacesarchkernel[@]/\%/${_kernelname}}")
+_replacesoldkernels=("${_replacesoldkernels[@]/\%/${_kernelname}}")
+_replacesoldmodules=("${_replacesoldmodules[@]/\%/${_kernelname}}")
case "$CARCH" in
i686|x86_64) KARCH=x86;;
@@ -145,9 +149,9 @@ _package() {
[ "${pkgbase}" = "linux-libre" ] && groups=('base')
depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
optdepends=('crda: to set the correct wireless channels of your country')
- provides=( "${_replaces[@]/%/=${_archpkgver}}")
- conflicts=("${_replaces[@]}")
- replaces=( "${_replaces[@]}")
+ provides=("${_replacesarchkernel[@]/%/=${_archpkgver}}")
+ conflicts=("${_replacesarchkernel[@]}" "${_replacesoldkernels[@]}" "${_replacesoldmodules}")
+ replaces=("${_replacesarchkernel[@]}" "${_replacesoldkernels[@]}" "${_replacesoldmodules}")
backup=("etc/mkinitcpio.d/${pkgbase}.preset")
install=linux.install
@@ -204,9 +208,9 @@ _package() {
_package-headers() {
pkgdesc="Header files and scripts for building modules for ${pkgbase^} kernel"
- provides=( "${_replaces[@]/%/-headers=${_archpkgver}}")
- conflicts=("${_replaces[@]/%/-headers}")
- replaces=( "${_replaces[@]/%/-headers}")
+ provides=("${_provides[@]/%/-headers=${_archpkgver}}")
+ conflicts=("${_provides[@]/%/-headers}" "${_replaces[@]/%/-headers}")
+ replaces=("${_provides[@]/%/-headers}" "${_replaces[@]/%/-headers}")
install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"
@@ -323,9 +327,9 @@ _package-headers() {
_package-docs() {
pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase^} kernel"
- provides=( "${_replaces[@]/%/-docs=${_archpkgver}}")
- conflicts=("${_replaces[@]/%/-docs}")
- replaces=( "${_replaces[@]/%/-docs}")
+ provides=("${_provides[@]/%/-docs=${_archpkgver}}")
+ conflicts=("${_provides[@]/%/-docs}" "${_replaces[@]/%/-docs}")
+ replaces=("${_provides[@]/%/-docs}" "${_replaces[@]/%/-docs}")
cd "${srcdir}/${_srcname}"