[arch-commits] Commit in tp_smapi/trunk (PKGBUILD tp_smapi.install)
Lukas Fleischer
lfleischer at archlinux.org
Sun May 29 10:36:35 UTC 2016
Date: Sunday, May 29, 2016 @ 12:36:35
Author: lfleischer
Revision: 177417
upgpkg: tp_smapi 0.42-1
Upstream update.
Modified:
tp_smapi/trunk/PKGBUILD
tp_smapi/trunk/tp_smapi.install
------------------+
PKGBUILD | 26 +++++++++++---------------
tp_smapi.install | 2 +-
2 files changed, 12 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-05-29 10:14:09 UTC (rev 177416)
+++ PKGBUILD 2016-05-29 10:36:35 UTC (rev 177417)
@@ -1,4 +1,3 @@
-# $Id$
# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
# Contributor: xduugu
# Contributor: nh2
@@ -9,28 +8,25 @@
# Contributor: Ignas Anikevicius <anikevicius ð gmail đ com>
pkgname=tp_smapi
-pkgver=0.41
-_extramodules=extramodules-4.5-ARCH
-pkgrel=85
+_pkgname=tp-smapi
+pkgver=0.42
+_extramodules=extramodules-4.6-ARCH
+pkgrel=1
pkgdesc="Modules for ThinkPad's SMAPI functionality"
arch=('i686' 'x86_64')
url='https://github.com/evgeni/tp_smapi'
license=('GPL')
-depends=('linux>=4.5' 'linux<4.6')
-makedepends=('linux-headers>=4.5' 'linux-headers<4.6')
+depends=('linux>=4.6' 'linux<4.7')
+makedepends=('linux-headers>=4.6' 'linux-headers<4.7')
install="${pkgname}.install"
-source=("https://github.com/downloads/evgeni/${pkgname}/${pkgname}-${pkgver}.tar.gz")
-md5sums=('63c683415c764568f6bf17c7eabe4752')
+source=("https://github.com/evgeni/$pkgname/archive/$_pkgname/$pkgver.tar.gz")
+md5sums=('6a51d3aa459ad7a6ebfbb8c29527b3ee')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "$srcdir/$pkgname-$_pkgname-$pkgver"
_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
-
- sed -ri -e "s/^(KVER\s*:=).*$/\1 ${_kernver}/" \
- -e "s|^(KBASE\s*:=).*\$|\1 /usr/lib/modules/${_kernver}|" Makefile
-
- make HDAPS=1
+ make HDAPS=1 KVER="$_kernver" KBASE="/usr/lib/modules/$_kernver"
}
package() {
@@ -38,7 +34,7 @@
make -C "/usr/lib/modules/${_kernver}/build" \
INSTALL_MOD_PATH="${pkgdir}/usr" \
- M="${srcdir}/${pkgname}-${pkgver}" modules_install
+ M="$srcdir/$pkgname-$_pkgname-$pkgver" modules_install
cd "${pkgdir}/usr/lib/modules"
mv "${_kernver}/extra" "${_extramodules}"
Modified: tp_smapi.install
===================================================================
--- tp_smapi.install 2016-05-29 10:14:09 UTC (rev 177416)
+++ tp_smapi.install 2016-05-29 10:36:35 UTC (rev 177417)
@@ -1,4 +1,4 @@
-extramodules=/usr/lib/modules/extramodules-4.5-ARCH
+extramodules=/usr/lib/modules/extramodules-4.6-ARCH
post_install() {
depmod -v $(< "$extramodules/version") &>/dev/null
More information about the arch-commits
mailing list