diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-25 06:28:57 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-25 06:28:57 -0300 |
commit | 5035e42b8394e28791b1627a41051a769d209954 (patch) | |
tree | a7319a50fd5aa4b72bf508168817f13ca515480f /libre/acpi_call-parabola/PKGBUILD | |
parent | 923e82ea210ea93e6d5f2cf3c969266b35d5bf4e (diff) | |
parent | 39a7a1e043d81081b57ea12b01736babb5666fd6 (diff) |
Merge branch 'master' of ssh://lukeshu.com:1863/srv/git/mirror/parabola/abslibre
Diffstat (limited to 'libre/acpi_call-parabola/PKGBUILD')
-rw-r--r-- | libre/acpi_call-parabola/PKGBUILD | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/libre/acpi_call-parabola/PKGBUILD b/libre/acpi_call-parabola/PKGBUILD index bf80b98da..f15838d2a 100644 --- a/libre/acpi_call-parabola/PKGBUILD +++ b/libre/acpi_call-parabola/PKGBUILD @@ -6,38 +6,35 @@ # Contributor: Luke Shumaker <lukeshu@sbcglobal.net> # Contributor: Márcio Silva <coadde@parabola.nu> -# Kernel info _basekernel=3.16 _kernelname= -# Source info _pkgname=acpi_call +pkgname=${_pkgname}-parabola${_kernelname} pkgver=1.1.0 +pkgrel=11.1 +_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') url="http://github.com/mkottman/${_pkgname}" license=('GPL') -source=("${url}/archive/v${pkgver}.tar.gz") -sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0') - -# Package info -pkgrel=11.1 -arch=('i686' 'x86_64' 'mips64el') -install='kmod.install' -_replaces=("${_pkgname}" "${_pkgname}-libre") -_provides=("${_pkgname}") # Generic (you shouldn't have to modify any of these variables) -pkgname=${_pkgname}-parabola${_kernelname} _toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) -_extramodules=extramodules-${_basekernel}${_kernelname} 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}}") -if [[ -n "${_kernelname}" ]]; then - provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname -fi +provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname + +install='kmod.install' +source=("${url}/archive/v${pkgver}.tar.gz") +sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0') build() { cd "${srcdir}/${_pkgname}-${pkgver}" @@ -53,7 +50,7 @@ package() { # Set the correct extramodules directory for install cp -f "${startdir}/${install}" "${startdir}/${install}.pkg" true && install=${install}.pkg - sed -r "s/(_extramodules=).*/\1${_extramodules}/" -i "${startdir}/${install}" + sed -i "s/^_EXTRAMODULES=.*/_EXTRAMODULES="${_extramodules}"/" "${startdir}/${install}" # Actually install install -dm 755 "${pkgdir}"/usr/lib/{modules/${_extramodules},modules-load.d} @@ -64,3 +61,5 @@ package() { install -dm 755 "${pkgdir}"/usr/share/${pkgname} cp -dr --no-preserve='ownership' {examples,support} "${pkgdir}"/usr/share/${pkgname}/ } + +# vim: ts=2 sw=2 et: |