summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/acpi_call-parabola/PKGBUILD21
1 files changed, 10 insertions, 11 deletions
diff --git a/libre/acpi_call-parabola/PKGBUILD b/libre/acpi_call-parabola/PKGBUILD
index 251e856f5..e211d9ada 100644
--- a/libre/acpi_call-parabola/PKGBUILD
+++ b/libre/acpi_call-parabola/PKGBUILD
@@ -10,9 +10,9 @@ _basekernel=3.16
_kernelname= # libre/linux-libre{,-lts}
_pkgname=acpi_call
-pkgname=${_pkgname}-parabola${_kernelname}
+pkgname=${_pkgname}${_kernelname}-parabola
pkgver=1.1.0
-pkgrel=11.2
+pkgrel=11.3 # linux-libre=11.3 | linux-libre-lts=7
_extramodules=extramodules-${_basekernel}${_kernelname}
pkgdesc="A linux kernel module that enables calls to ACPI methods through /proc/acpi/call (built for the linux-libre${_kernelname} kernel package)"
arch=('i686' 'x86_64' 'mips64el')
@@ -24,12 +24,11 @@ _toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1)))
depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}")
-_replaces=("${_pkgname}" "${_pkgname}-libre")
-_provides=("${_pkgname}")
-
-replaces=( "${_replaces[@]/%/${_kernelname}}")
-conflicts=("${_replaces[@]/%/${_kernelname}}")
-provides=( "${_provides[@]/%/${_kernelname}=${pkgver}}")
+replaces=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}")
+[[ -n ${_kernelname} ]] && replaces+=("${_pkgname}-parabola${_kernelname}")
+conflicts=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}")
+[[ -n ${_kernelname} ]] && conflicts+=("${_pkgname}-parabola${_kernelname}")
+provides=("${_pkgname}${_kernelname}=${pkgver}")
install='kmod.install'
source=("${url}/archive/v${pkgver}.tar.gz")
@@ -55,10 +54,10 @@ package() {
install -dm 755 "${pkgdir}"/usr/lib/{modules/${_extramodules},modules-load.d}
install -m 644 ${_pkgname}.ko "${pkgdir}"/usr/lib/modules/${_extramodules}
gzip "${pkgdir}"/usr/lib/modules/${_extramodules}/${_pkgname}.ko
- echo ${_pkgname} > "${pkgdir}"/usr/lib/modules-load.d/${pkgname}.conf
+ echo ${_pkgname} > "${pkgdir}"/usr/lib/modules-load.d/${_pkgname}${_kernelname}.conf
- install -dm 755 "${pkgdir}"/usr/share/${pkgname}
- cp -dr --no-preserve='ownership' {examples,support} "${pkgdir}"/usr/share/${pkgname}/
+ install -dm 755 "${pkgdir}"/usr/share/${_pkgname}${_kernelname}
+ cp -dr --no-preserve='ownership' {examples,support} "${pkgdir}"/usr/share/${_pkgname}${_kernelname}/
}
# vim: ts=2 sw=2 et: