summaryrefslogtreecommitdiff
path: root/libre/linux-libre-lts/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/linux-libre-lts/PKGBUILD')
-rw-r--r--libre/linux-libre-lts/PKGBUILD51
1 files changed, 32 insertions, 19 deletions
diff --git a/libre/linux-libre-lts/PKGBUILD b/libre/linux-libre-lts/PKGBUILD
index 7411ad60f..64365b7b4 100644
--- a/libre/linux-libre-lts/PKGBUILD
+++ b/libre/linux-libre-lts/PKGBUILD
@@ -179,9 +179,10 @@ _package() {
depends=('coreutils' 'linux-libre-firmware' 'kmod')
optdepends=('crda: to set the correct wireless channels of your country')
if [ "${CARCH}" = "armv7h" ]; then
- provides=("${_replacesarchkernel%${_kernelname}}")
- conflicts=("${_replacesarchkernel%${_kernelname}}")
- replaces=("${_replacesarchkernel%${_kernelname}}")
+ provides=("${_replacesarchkernel}")
+ conflicts=("${_replacesarchkernel}")
+ replaces=("${_replacesarchkernel}")
+ [ "${pkgbase}" != "linux-libre" ] && conflicts+=("${_replacesarchkernel%${_kernelname}}")
elif [ "${CARCH}" = "x86_64" ] || [ "${CARCH}" = "i686" ]; then
depends+=('mkinitcpio>=0.7')
provides=("${_replacesarchkernel[@]/%/=${_archpkgver}}")
@@ -259,9 +260,10 @@ _package() {
_package-headers() {
pkgdesc="Header files and scripts for building modules for ${pkgbase^} kernel"
if [ "${CARCH}" = "armv7h" ]; then
- provides=("${_replacesarchkernel%${_kernelname}}-headers")
- conflicts=("${_replacesarchkernel%${_kernelname}}-headers")
- replaces=("${_replacesarchkernel%${_kernelname}}-headers")
+ provides=("${_replacesarchkernel}-headers")
+ conflicts=("${_replacesarchkernel}-headers")
+ replaces=("${_replacesarchkernel}-headers")
+ [ "${pkgbase}" != "linux-libre" ] && conflicts+=("${_replacesarchkernel%${_kernelname}}-headers")
elif [ "${CARCH}" = "x86_64" ] || [ "${CARCH}" = "i686" ]; then
provides=("${_replacesarchkernel[@]/%/-headers=${_archpkgver}}")
conflicts=("${_replacesarchkernel[@]/%/-headers}" "${_replacesoldkernels[@]/%/-headers}")
@@ -393,9 +395,10 @@ _package-headers() {
_package-docs() {
pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase^} kernel"
if [ "${CARCH}" = "armv7h" ]; then
- provides=("${_replacesarchkernel%${_kernelname}}-docs")
- conflicts=("${_replacesarchkernel%${_kernelname}}-docs")
- replaces=("${_replacesarchkernel%${_kernelname}}-docs")
+ provides=("${_replacesarchkernel}-docs")
+ conflicts=("${_replacesarchkernel}-docs")
+ replaces=("${_replacesarchkernel}-docs")
+ [ "${pkgbase}" != "linux-libre" ] && conflicts+=("${_replacesarchkernel%${_kernelname}}-docs")
elif [ "${CARCH}" = "x86_64" ] || [ "${CARCH}" = "i686" ]; then
provides=("${_replacesarchkernel[@]/%/-docs=${_archpkgver}}")
conflicts=("${_replacesarchkernel[@]/%/-docs}" "${_replacesoldkernels[@]/%/-docs}")
@@ -417,8 +420,10 @@ _package-smileplug() {
pkgdesc="The ${pkgbase^} kernel - Marvell SMILE Plug"
arch=('armv7h')
depends=("${pkgbase}")
- provides=("${_replacesarchkernel%${_kernelname}}-uimage")
- conflicts=("${_replacesarchkernel%${_kernelname}}-uimage")
+ provides=("${_replacesarchkernel}-uimage")
+ conflicts=("${_replacesarchkernel}-uimage")
+ replaces=("${_replacesarchkernel}-uimage")
+ [ "${pkgbase}" != "linux-libre" ] && conflicts+=("${_replacesarchkernel%${_kernelname}}-uimage")
cd "${srcdir}/${_srcname}"
@@ -431,8 +436,10 @@ _package-mirabox() {
pkgdesc="The ${pkgbase^} kernel - Globalscale Mirabox"
arch=('armv7h')
depends=("${pkgbase}")
- provides=("${_replacesarchkernel%${_kernelname}}-uimage")
- conflicts=("${_replacesarchkernel%${_kernelname}}-uimage")
+ provides=("${_replacesarchkernel}-uimage")
+ conflicts=("${_replacesarchkernel}-uimage")
+ replaces=("${_replacesarchkernel}-uimage")
+ [ "${pkgbase}" != "linux-libre" ] && conflicts+=("${_replacesarchkernel%${_kernelname}}-uimage")
cd "${srcdir}/${_srcname}"
@@ -445,8 +452,10 @@ _package-ax3() {
pkgdesc="The ${pkgbase^} kernel - OpenBlocks AX3-4"
arch=('armv7h')
depends=("${pkgbase}")
- provides=("${_replacesarchkernel%${_kernelname}}-uimage")
- conflicts=("${_replacesarchkernel%${_kernelname}}-uimage")
+ provides=("${_replacesarchkernel}-uimage")
+ conflicts=("${_replacesarchkernel}-uimage")
+ replaces=("${_replacesarchkernel}-uimage")
+ [ "${pkgbase}" != "linux-libre" ] && conflicts+=("${_replacesarchkernel%${_kernelname}}-uimage")
cd "${srcdir}/${_srcname}"
@@ -459,8 +468,10 @@ _package-d3plug() {
pkgdesc="The ${pkgbase^} kernel - Globalscale D3Plug"
arch=('armv7h')
depends=("${pkgbase}")
- provides=("${_replacesarchkernel%${_kernelname}}-uimage")
- conflicts=("${_replacesarchkernel%${_kernelname}}-uimage")
+ provides=("${_replacesarchkernel}-uimage")
+ conflicts=("${_replacesarchkernel}-uimage")
+ replaces=("${_replacesarchkernel}-uimage")
+ [ "${pkgbase}" != "linux-libre" ] && conflicts+=("${_replacesarchkernel%${_kernelname}}-uimage")
cd "${srcdir}/${_srcname}"
@@ -473,8 +484,10 @@ _package-cubox() {
pkgdesc="The ${pkgbase^} kernel - SolidRun Cubox (Marvell)"
arch=('armv7h')
depends=("${pkgbase}")
- provides=("${_replacesarchkernel%${_kernelname}}-uimage")
- conflicts=("${_replacesarchkernel%${_kernelname}}-uimage")
+ provides=("${_replacesarchkernel}-uimage")
+ conflicts=("${_replacesarchkernel}-uimage")
+ replaces=("${_replacesarchkernel}-uimage")
+ [ "${pkgbase}" != "linux-libre" ] && conflicts+=("${_replacesarchkernel%${_kernelname}}-uimage")
cd "${srcdir}/${_srcname}"