summaryrefslogtreecommitdiff
path: root/libre/tp_smapi-lts
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-05 12:13:55 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-05 12:13:55 +0100
commit00c901d396be8772f9aee8658a2e4841832b298b (patch)
tree31d7507ad4f79fcb1961a049b47a020f5dc625f8 /libre/tp_smapi-lts
parente1a2efc43fbed29226f35aa11262d7011e2c9578 (diff)
libre/tp_smapi-lts: updated to 0.43
Diffstat (limited to 'libre/tp_smapi-lts')
-rw-r--r--libre/tp_smapi-lts/PKGBUILD45
1 files changed, 24 insertions, 21 deletions
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 <coadde@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-_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="$(</usr/lib/modules/${_extramodules}/version)" EXTRA_CFLAGS=
+ make HDAPS=1 KVER="$(<$_extradir/version)" EXTRA_CFLAGS=
}
package() {
- cd "${pkgname/-lts/}-${_pkgname}-${pkgver}"
+ cd ${pkgname/-lts/}
# install kernel modules
- find . -name "*.ko" -exec install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" {} +
+ find . -name "*.ko" -exec install -Dt "$pkgdir$_extradir" {} +
# compress kernel modules
- find "${pkgdir}" -name "*.ko" -exec gzip -9 {} +
+ find "$pkgdir" -name "*.ko" -exec gzip -n -9 {} +
# load module on startup
- install -dm 755 "${pkgdir}/usr/lib/modules-load.d"
- echo tp_smapi > "${pkgdir}/usr/lib/modules-load.d/${pkgname}.conf"
+ echo tp_smapi | install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
}