[arch-commits] Commit in tp_smapi-lts/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Oct 11 20:32:56 UTC 2019
Date: Friday, October 11, 2019 @ 20:32:55
Author: heftig
Revision: 515176
0.43-14: extramodules-lts removal
Modified:
tp_smapi-lts/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-11 20:32:54 UTC (rev 515175)
+++ PKGBUILD 2019-10-11 20:32:55 UTC (rev 515176)
@@ -8,42 +8,41 @@
# Contributor: Ignas Anikevicius <anikevicius ð gmail đ com>
pkgname=tp_smapi-lts
-_pkgname=tp-smapi
pkgver=0.43
-_extradir=/usr/lib/modules/extramodules-lts
-pkgrel=13
+pkgrel=14
pkgdesc="Modules for ThinkPad's SMAPI functionality"
arch=('x86_64')
url='https://github.com/evgeni/tp_smapi'
license=('GPL')
-depends=('linux-lts>=4.19.78' 'linux-lts<4.20')
-makedepends=('linux-lts-headers>=4.19.78' 'linux-lts-headers<4.20' 'git')
+depends=('linux-lts>=4.19.79' 'linux-lts<4.20')
+makedepends=('linux-lts-headers>=4.19.79' 'linux-lts-headers<4.20' 'git')
_commit=a63729ab30d85430048f65c37f29188ab484cd52 # tags/tp-smapi/0.43
source=("git+https://github.com/evgeni/tp_smapi#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
- cd ${pkgname/-lts/}
+ cd tp_smapi
git describe --tags | sed 's/^tp-smapi\///;s/-/+/g'
}
build() {
- cd ${pkgname/-lts/}
+ cd tp_smapi
# 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="$(<$_extradir/version)" EXTRA_CFLAGS=
+ make HDAPS=1 KVER="$(</usr/src/linux-lts/version)" EXTRA_CFLAGS=
}
package() {
- cd ${pkgname/-lts/}
+ local extradir=/usr/lib/modules/$(</usr/src/linux-lts/version)/extramodules
+ cd tp_smapi
# install kernel modules
- find . -name "*.ko" -exec install -Dt "$pkgdir$_extradir" {} +
+ find . -name "*.ko" -exec install -Dt "$pkgdir$extradir" {} +
# compress kernel modules
- find "$pkgdir" -name "*.ko" -exec gzip -n -9 {} +
+ find "$pkgdir" -name "*.ko" -exec xz {} +
# load module on startup
echo tp_smapi | install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
More information about the arch-commits
mailing list