diff options
Diffstat (limited to 'libre')
-rw-r--r-- | libre/acpi_call-lts/PKGBUILD | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/libre/acpi_call-lts/PKGBUILD b/libre/acpi_call-lts/PKGBUILD index 60abfb5a2..1c826725b 100644 --- a/libre/acpi_call-lts/PKGBUILD +++ b/libre/acpi_call-lts/PKGBUILD @@ -5,28 +5,23 @@ # Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info> # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> -_basekernel=4.19 +_basekernel="$(pacman -Sp --print-format '%v' linux-libre-lts)" pkgname=acpi_call-lts pkgver=1.1.0 -pkgrel=78 -_extramodules=extramodules-${_basekernel}-lts -pkgrel+=.parabola1.basekernel${_basekernel} +pkgrel=79 +_extramodules=extramodules-${_basekernel%.*}-lts +pkgrel+=.parabola1.basekernel${_basekernel%_*} pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call' pkgdesc+=' (built for the linux-libre-lts kernel package)' arch=('x86_64') arch+=('i686' 'armv7h') url='https://github.com/mkottman/acpi_call' license=('GPL') - -# Generic (you shouldn't have to modify any of these variables) -_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) -depends=("linux-libre-lts>=${_basekernel}" "linux-libre-lts<${_toohigh}") -makedepends=("linux-libre-lts-headers>=${_basekernel}" "linux-libre-lts-headers<${_toohigh}" "linux-libre-lts>=${_basekernel}" "linux-libre-lts<${_toohigh}") -makedepends+=('libelf') - +depends=(linux-libre-lts=${_basekernel%-*}) +makedepends=(linux-libre-lts-headers=${_basekernel%-*} libelf) provides=('acpi_call') -source=("acpi_call-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +source=("acpi_call-${pkgver}.tar.gz::https://github.com/mkottman/acpi_call/archive/v${pkgver}.tar.gz") sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0') prepare() { |