summaryrefslogtreecommitdiff
path: root/libre/tp_smapi
diff options
context:
space:
mode:
Diffstat (limited to 'libre/tp_smapi')
-rw-r--r--libre/tp_smapi/PKGBUILD16
1 files changed, 5 insertions, 11 deletions
diff --git a/libre/tp_smapi/PKGBUILD b/libre/tp_smapi/PKGBUILD
index 94914daf0..f65c30df6 100644
--- a/libre/tp_smapi/PKGBUILD
+++ b/libre/tp_smapi/PKGBUILD
@@ -10,26 +10,20 @@
# Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-_basekernel=4.20
-_parabolarel=1
+_basekernel="$(pacman -Sp --print-format '%v' linux-libre)"
pkgname=tp_smapi
pkgver=0.43
-pkgrel=86
-pkgrel+=.parabola${_parabolarel}.basekernel${_basekernel}
+pkgrel=89
+pkgrel+=.parabola1.basekernel${_basekernel%_*}
pkgdesc="Modules for ThinkPad's SMAPI functionality"
pkgdesc+=" (built for the linux-libre kernel package)"
arch=('x86_64')
arch+=('i686')
url='https://github.com/evgeni/tp_smapi'
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>=${_basekernel}" "linux-libre<${_toohigh}")
-makedepends=("linux-libre-headers>=${_basekernel}" "linux-libre-headers<${_toohigh}" 'git')
-makedepends+=('libelf')
-
+depends=(linux-libre=${_basekernel%-*})
+makedepends=(linux-libre-headers=${_basekernel%-*} git libelf)
_extradir=/usr/lib/modules/extramodules
_commit=a63729ab30d85430048f65c37f29188ab484cd52 # tags/tp-smapi/0.43
source=("git+https://github.com/evgeni/tp_smapi#commit=$_commit")