summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAliaksandr Mianzhynski2020-07-06 12:11:05 +0300
committerAliaksandr Mianzhynski2020-07-06 12:11:05 +0300
commit76ee3e840d2dfa30f340ae69bbc701719ac209dd (patch)
tree6bf467c8d4e8c078bc730f6d8b646a334c14b915
parent13d46eaf1577013a016777a6d30dcd5bc097a2d6 (diff)
downloadaur-cp210x-dkms.tar.gz
Override KVERSION in Makefile
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD8
-rw-r--r--override-kversion.patch5
3 files changed, 16 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7e408a2ee96..3a7407e0ab7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,18 @@
pkgbase = cp210x-dkms
pkgdesc = Silicon Labs CP210x RS232 serial adaptor driver
pkgver = 2019.7.12
- pkgrel = 6
+ pkgrel = 7
url = https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
arch = any
license = GPL
depends = dkms
- provides = cp210x=2019.7.12-6
+ provides = cp210x=2019.7.12-7
conflicts = cp210x
source = https://www.silabs.com/documents/login/software/Linux_3.x.x_4.x.x_VCP_Driver_Source.zip
+ source = override-kversion.patch
source = dkms.conf
sha256sums = 7d624cd66ee610fd9c6598793534ed593ac1309b3d3b3699c101d921ad9ccd7c
+ sha256sums = 4dfcb1fff04a30ccd4b1b6f8d7bba0aada7712aac2b6f3deff792d98f98f651f
sha256sums = 62da72a3f8f9566326168a759cb5cc54b8c39aeb6594e1b4229774868c7eb3d2
pkgname = cp210x-dkms
diff --git a/PKGBUILD b/PKGBUILD
index 30e910f04df..878ef98f3d5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Alexander Menzhinsky <amenzhinsky@gmail.com>
pkgname=cp210x-dkms
pkgver=2019.7.12
-pkgrel=6
+pkgrel=7
conflicts=(cp210x)
provides=("cp210x=$pkgver-$pkgrel")
pkgdesc='Silicon Labs CP210x RS232 serial adaptor driver'
@@ -10,10 +10,16 @@ arch=("any")
license=('GPL')
depends=(dkms)
source=("https://www.silabs.com/documents/login/software/Linux_3.x.x_4.x.x_VCP_Driver_Source.zip"
+ override-kversion.patch
dkms.conf)
sha256sums=('7d624cd66ee610fd9c6598793534ed593ac1309b3d3b3699c101d921ad9ccd7c'
+ '4dfcb1fff04a30ccd4b1b6f8d7bba0aada7712aac2b6f3deff792d98f98f651f'
'62da72a3f8f9566326168a759cb5cc54b8c39aeb6594e1b4229774868c7eb3d2')
+prepare() {
+ patch Makefile < override-kversion.patch
+}
+
package() {
install -Dt "$pkgdir/usr/src/cp210x-$pkgver" -m644 Makefile cp210x.c dkms.conf
diff --git a/override-kversion.patch b/override-kversion.patch
new file mode 100644
index 00000000000..60811d4b208
--- /dev/null
+++ b/override-kversion.patch
@@ -0,0 +1,5 @@
+2c2,3
+< KDIR = /lib/modules/`uname -r`/build
+---
+> KVERSION ?= `uname -r`
+> KDIR = /lib/modules/$(KVERSION)/build