From 00c901d396be8772f9aee8658a2e4841832b298b Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Tue, 5 Feb 2019 12:13:55 +0100 Subject: libre/tp_smapi-lts: updated to 0.43 --- libre/tp_smapi-lts/PKGBUILD | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) (limited to 'libre/tp_smapi-lts') diff --git a/libre/tp_smapi-lts/PKGBUILD b/libre/tp_smapi-lts/PKGBUILD index e5c1432ae..1845f316e 100644 --- a/libre/tp_smapi-lts/PKGBUILD +++ b/libre/tp_smapi-lts/PKGBUILD @@ -10,52 +10,55 @@ # Contributor (Hyperbola): Márcio Silva # Maintainer: Omar Vega Ramos -_basekernel=4.14 -_archrel=40 -_parabolarel=1 +_basekernel=4.19 pkgname=tp_smapi-lts _pkgname=tp-smapi -pkgver=0.42 -pkgrel=${_archrel}.parabola${_parabolarel}.basekernel${_basekernel} -_extramodules=extramodules-${_basekernel}-lts -pkgdesc="Modules for ThinkPad's SMAPI functionality (built for the linux-libre-lts kernel package)" -arch=('i686' 'x86_64') +pkgver=0.43 +_extradir=/usr/lib/modules/extramodules-${_basekernel}-lts +pkgrel=78 +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}") +makedepends=("linux-libre-lts-headers>=${_basekernel}" "linux-libre-lts-headers<${_toohigh}" "linux-libre-lts>=${_basekernel}" "linux-libre-lts<${_toohigh}" 'git') makedepends+=('libelf') -replaces=("${pkgname/-lts/}-libre-lts" "${pkgname/-lts/}-parabola-lts") -conflicts=("${pkgname/-lts/}-libre-lts" "${pkgname/-lts/}-parabola-lts") -provides=("${pkgname/-lts/}") +provides=('tp-smapi') +_commit=a63729ab30d85430048f65c37f29188ab484cd52 # tags/tp-smapi/0.43 +source=("git+https://github.com/evgeni/tp_smapi#commit=$_commit") +sha256sums=('SKIP') -source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/evgeni/${pkgname/-lts/}/archive/${_pkgname}/${pkgver}.tar.gz") -sha256sums=('cd28bf6ee21b2c27b88d947cb0bfcb19648c7daa5d350115403dbcad05849381') +pkgver() { + cd ${pkgname/-lts/} + git describe --tags | sed 's/^tp-smapi\///;s/-/+/g' +} build() { - cd "${pkgname/-lts/}-${_pkgname}-${pkgver}" + cd ${pkgname/-lts/} # https://bugs.archlinux.org/task/54975 (kernel has no _GLOBAL_OFFSET_TABLE_): # Clear EXTRA_CFLAGS since it defaults to injecting CFLAGS and -fno-plt breaks the modules - make HDAPS=1 KVER="$( "${pkgdir}/usr/lib/modules-load.d/${pkgname}.conf" + echo tp_smapi | install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/$pkgname.conf" } -- cgit v1.2.3