summaryrefslogtreecommitdiff
path: root/libre/tp_smapi
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2018-02-13 18:16:16 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2018-02-13 18:16:16 -0500
commitbb6b509988c7748bb7cc2be949b62e1c3a208fe3 (patch)
tree61261c1be50b4e91fdedf16a8d643811efd3bc5c /libre/tp_smapi
parent49ede32edf0134e7a9eb787506db41d8eb9902ed (diff)
downloadabslibre-bb6b509988c7748bb7cc2be949b62e1c3a208fe3.tar.gz
abslibre-bb6b509988c7748bb7cc2be949b62e1c3a208fe3.tar.bz2
abslibre-bb6b509988c7748bb7cc2be949b62e1c3a208fe3.zip
rebuild module packages against linux-libre-4.15.2_gnu-1
Diffstat (limited to 'libre/tp_smapi')
-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"