summaryrefslogtreecommitdiff
path: root/libre/acpi_call-parabola
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-27 06:05:47 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-27 06:05:47 -0300
commitd73f07b0acf8bae623e1e112a7cb3744a84a92ee (patch)
tree87a2b353ea5229bbe309ea9db9d43bf24e2a6fd8 /libre/acpi_call-parabola
parentc001329b017288676a28aa6078bf16ad42e318e9 (diff)
parent0ff008e3c9dcc5ef088f481dfff3dcd121575598 (diff)
downloadabslibre-d73f07b0acf8bae623e1e112a7cb3744a84a92ee.tar.gz
abslibre-d73f07b0acf8bae623e1e112a7cb3744a84a92ee.tar.bz2
abslibre-d73f07b0acf8bae623e1e112a7cb3744a84a92ee.zip
Merge branch 'master' of ssh://lukeshu.com:1863/srv/git/mirror/parabola/abslibre
Diffstat (limited to 'libre/acpi_call-parabola')
-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: