summaryrefslogtreecommitdiff
path: root/libre/tp_smapi-lts
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-24 18:27:48 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-24 18:27:48 +0100
commit32c2b3990b386355aceb2477d57185234dd92154 (patch)
treeed66c29f1f6d080d0bc6ac4af0aed6c268aaea80 /libre/tp_smapi-lts
parentbc78acc2bbcdc7171b6a25a2a6291cbd6f0e959f (diff)
downloadabslibre-32c2b3990b386355aceb2477d57185234dd92154.tar.gz
abslibre-32c2b3990b386355aceb2477d57185234dd92154.tar.bz2
abslibre-32c2b3990b386355aceb2477d57185234dd92154.zip
libre/tp_smapi-lts: rebuilt
Diffstat (limited to 'libre/tp_smapi-lts')
-rw-r--r--libre/tp_smapi-lts/PKGBUILD18
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')