From 5df1490b1ae825f3b2422115ab13f557b1aa49e9 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sun, 24 Aug 2014 17:47:55 -0300 Subject: linux-libre kernels and dependencies: add libre suffix packages on replaces and conflicts, rename $archver to $archpkgver with improvements on the variables --- libre/linux-libre-lts/PKGBUILD | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libre/linux-libre-lts/PKGBUILD') diff --git a/libre/linux-libre-lts/PKGBUILD b/libre/linux-libre-lts/PKGBUILD index 925955992..59b18129f 100644 --- a/libre/linux-libre-lts/PKGBUILD +++ b/libre/linux-libre-lts/PKGBUILD @@ -10,12 +10,12 @@ pkgbase=linux-libre-lts # Build kernel with -lts localname _pkgbasever=3.14-gnu _pkgver=3.14.17-gnu -_archver=3.14.17 _replaces=('kernel26%' 'linux%') # '%' gets replaced with _kernelname _replacesalx=('linux-libre%-kmod-alx') # '%' gets replaced with _kernelname _srcname=linux-${_pkgbasever%-*} +_archpkgver=${_pkgver%-*} pkgver=${_pkgver//-/.} pkgrel=1.1 arch=('i686' 'x86_64' 'mips64el') @@ -132,7 +132,7 @@ _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[@]/%/=${_archver}}" "${_replacesalx}") + provides=( "${_replaces[@]/%/=${_archpkgver}}" "${_replacesalx}") conflicts=("${_replaces[@]}" "${_replacesalx}") replaces=( "${_replaces[@]}" "${_replacesalx}") backup=("etc/mkinitcpio.d/${pkgbase}.preset") @@ -191,7 +191,7 @@ _package() { _package-headers() { pkgdesc="Header files and scripts for building modules for ${pkgbase^} kernel" - provides=( "${_replaces[@]/%/-headers=${_archver}}") + provides=( "${_replaces[@]/%/-headers=${_archpkgver}}") conflicts=("${_replaces[@]/%/-headers}") replaces=( "${_replaces[@]/%/-headers}") @@ -310,7 +310,7 @@ _package-headers() { _package-docs() { pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase^} kernel" - provides=( "${_replaces[@]/%/-docs=${_archver}}") + provides=( "${_replaces[@]/%/-docs=${_archpkgver}}") conflicts=("${_replaces[@]/%/-docs}") replaces=( "${_replaces[@]/%/-docs}") -- cgit v1.2.3