diff options
author | Enrico Pozzobon | 2018-07-24 12:20:56 +0200 |
---|---|---|
committer | Enrico Pozzobon | 2018-07-24 12:20:56 +0200 |
commit | 28f1db6aa4e1aba46ebc262917f6b6f5fd19a686 (patch) | |
tree | 5061babeff63ae0cbc9dad9950722d693511d9eb | |
parent | 0b75c90dab4ad196ac78bec3b35a043e4caaeae8 (diff) | |
download | aur-28f1db6aa4e1aba46ebc262917f6b6f5fd19a686.tar.gz |
Added Makefile patch for dkms
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 | ||||
-rw-r--r-- | dkms.conf | 2 |
3 files changed, 10 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = can-isotp-dkms-git pkgdesc = Kernel modules for isotp pkgver = r14.6003f99 - pkgrel = 1 + pkgrel = 2 url = https://github.com/hartkopp/can-isotp arch = i686 arch = x86_64 @@ -16,7 +16,7 @@ pkgbase = can-isotp-dkms-git source = git+https://github.com/hartkopp/can-isotp.git source = dkms.conf sha256sums = SKIP - sha256sums = 8224438ae2136eb5e423daf475168b337707539440c9024b97a9493c6c3e793e + sha256sums = 4e69b728bacd8aba3281b55aef2da2e8737d6a380be2d8ed397e09f79651f317 pkgname = can-isotp-dkms-git @@ -3,7 +3,7 @@ pkgname=can-isotp-dkms-git _pkgbase=can-isotp pkgver=r14.6003f99 -pkgrel=1 +pkgrel=2 provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") pkgdesc="Kernel modules for isotp" @@ -18,7 +18,7 @@ optdepends=('can-utils: utilities for sending and receiving ISOTP messges' source=("git+https://github.com/hartkopp/can-isotp.git" 'dkms.conf') sha256sums=('SKIP' - '8224438ae2136eb5e423daf475168b337707539440c9024b97a9493c6c3e793e') + '4e69b728bacd8aba3281b55aef2da2e8737d6a380be2d8ed397e09f79651f317') pkgver() { cd "$srcdir/${_pkgbase}" @@ -35,6 +35,11 @@ package() { # Copy dkms.conf install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf + # Patch makefile to work with dkms, and use the specified kernel release + sed -e s/else// \ + -e s/shell\ uname\ \-r/KERNELRELEASE/ \ + -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/Makefile + # Set name and version sed -e "s/@_PKGBASE@/${_pkgbase}/" \ -e "s/@PKGVER@/${pkgver}/" \ diff --git a/dkms.conf b/dkms.conf index 923545719998..557b88302afa 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,6 +1,6 @@ PACKAGE_NAME="@_PKGBASE@" PACKAGE_VERSION="@PKGVER@" -MAKE[0]="'make' modules" +MAKE[0]="make modules" CLEAN="make clean" BUILT_MODULE_NAME[0]="@_PKGBASE@" DEST_MODULE_LOCATION[0]="/kernel/drivers/net/can" |