summaryrefslogtreecommitdiff
path: root/libre/tp_smapi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/tp_smapi/PKGBUILD')
-rw-r--r--libre/tp_smapi/PKGBUILD27
1 files changed, 16 insertions, 11 deletions
diff --git a/libre/tp_smapi/PKGBUILD b/libre/tp_smapi/PKGBUILD
index 475525ac2..a23f1fdf4 100644
--- a/libre/tp_smapi/PKGBUILD
+++ b/libre/tp_smapi/PKGBUILD
@@ -11,13 +11,12 @@
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
-_basekernel=4.14
-_archrel=45
-_parabolarel=2
+_basekernel=4.15
+_archrel=7
+_parabolarel=1
pkgname=tp_smapi
-_pkgname=tp-smapi
-pkgver=0.42
+pkgver=0.42+7+g76c5120
pkgrel=${_archrel}.parabola${_parabolarel}.basekernel${_basekernel}
_extramodules=extramodules-${_basekernel}
pkgdesc="Modules for ThinkPad's SMAPI functionality (built for the linux-libre kernel package)"
@@ -28,17 +27,23 @@ 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>=${_basekernel}" "linux-libre<${_toohigh}")
-makedepends=("linux-libre-headers>=${_basekernel}" "linux-libre-headers<${_toohigh}")
+makedepends=("linux-libre-headers>=${_basekernel}" "linux-libre-headers<${_toohigh}" "git")
makedepends+=('libelf')
replaces=("${pkgname}-libre" "${pkgname}-parabola")
conflicts=("${pkgname}-libre" "${pkgname}-parabola")
-source=("${pkgname}-${_pkgname}-${pkgver}.tar.gz::https://github.com/evgeni/${pkgname}/archive/${_pkgname}/${pkgver}.tar.gz")
-sha256sums=('cd28bf6ee21b2c27b88d947cb0bfcb19648c7daa5d350115403dbcad05849381')
+_commit=76c5120f7be4880cf2c6801f872327e4e70c449f # master
+source=("git+https://github.com/evgeni/tp_smapi#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/^tp-smapi\///;s/-/+/g'
+}
build() {
- cd "${pkgname}-${_pkgname}-${pkgver}"
+ cd $pkgname
# 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
@@ -47,13 +52,13 @@ build() {
}
package() {
- cd "${pkgname}-${_pkgname}-${pkgver}"
+ cd $pkgname
# install kernel modules
find . -name "*.ko" -exec install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" {} +
# compress kernel modules
- find "${pkgdir}" -name "*.ko" -exec gzip -9 {} +
+ find "${pkgdir}" -name "*.ko" -exec xz {} +
# load module on startup
install -dm 755 "${pkgdir}/usr/lib/modules-load.d"