diff options
-rw-r--r-- | libre/tp_smapi-lts/PKGBUILD | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/libre/tp_smapi-lts/PKGBUILD b/libre/tp_smapi-lts/PKGBUILD index 1845f316e..029e6b222 100644 --- a/libre/tp_smapi-lts/PKGBUILD +++ b/libre/tp_smapi-lts/PKGBUILD @@ -10,28 +10,22 @@ # 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=tp_smapi-lts _pkgname=tp-smapi pkgver=0.43 -_extradir=/usr/lib/modules/extramodules-${_basekernel}-lts -pkgrel=78 -pkgrel+=.parabola1.basekernel${_basekernel} +_extradir=/usr/lib/modules/extramodules-${_basekernel%.*}-lts +pkgrel=79 +pkgrel+=.parabola1.basekernel${_basekernel%_*} pkgdesc="Modules for ThinkPad's SMAPI functionality" pkgdesc+="(built for the linux-libre-lts 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-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}" 'git') -makedepends+=('libelf') - -provides=('tp-smapi') +depends=(linux-libre-lts=${_basekernel%-*}) +makedepends=(linux-libre-lts-headers=${_basekernel%-*} git libelf) _commit=a63729ab30d85430048f65c37f29188ab484cd52 # tags/tp-smapi/0.43 source=("git+https://github.com/evgeni/tp_smapi#commit=$_commit") sha256sums=('SKIP') |