diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-08-25 06:26:03 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-08-25 06:26:03 -0300 |
commit | 39a7a1e043d81081b57ea12b01736babb5666fd6 (patch) | |
tree | b06f0d1c6008cc7f597ef521dd543d288736fb53 /libre | |
parent | 5d4c6a28fc7526df5af3fc158f8c377e3d6d7c5d (diff) | |
download | abslibre-39a7a1e043d81081b57ea12b01736babb5666fd6.tar.gz abslibre-39a7a1e043d81081b57ea12b01736babb5666fd6.tar.bz2 abslibre-39a7a1e043d81081b57ea12b01736babb5666fd6.zip |
acpi_call-parabola: fixing pkg
Diffstat (limited to 'libre')
-rw-r--r-- | libre/acpi_call-parabola/PKGBUILD | 33 | ||||
-rw-r--r-- | libre/acpi_call-parabola/kmod.install | 12 |
2 files changed, 22 insertions, 23 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: diff --git a/libre/acpi_call-parabola/kmod.install b/libre/acpi_call-parabola/kmod.install index d4bd8cb34..40caa464f 100644 --- a/libre/acpi_call-parabola/kmod.install +++ b/libre/acpi_call-parabola/kmod.install @@ -1,14 +1,14 @@ +_EXTRAMODULES= + post_install() { - _extramodules=THIS_IS_AUTOMATICALLY_SET_BY_PKGBUILD - depmod $(cat /usr/lib/modules/${_extramodules}/version) + echo ">>> Updating module dependencies. Please wait ..." + depmod "$(cat /usr/lib/modules/$_EXTRAMODULES/version)" >/dev/null 2>&1 } post_upgrade() { - post_install + post_install } post_remove() { - post_install + post_install } - -# vim: ts=2 sw=2 et: |