summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAliaksandr Mianzhynski2020-06-11 20:43:11 +0300
committerAliaksandr Mianzhynski2020-06-11 20:43:11 +0300
commit1247d25fab52f3475bc52cfa9f370d4ca65d7892 (patch)
tree22e11a439a95d8c4f013d2f102c8ae46771b62b8
parentf9fdc6547af0e14f967373eaa845841677a11389 (diff)
downloadaur-1247d25fab52f3475bc52cfa9f370d4ca65d7892.tar.gz
Override kernel version in provided makefile
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD12
-rw-r--r--override-kversion.patch5
3 files changed, 18 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 46bf0d01548..820188c215a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cp210x
pkgdesc = Silicon Labs CP210x RS232 serial adaptor driver
pkgver = 2019.7.12
- pkgrel = 4
+ pkgrel = 5
url = https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
arch = x86_64
license = GPL
@@ -9,14 +9,16 @@ pkgbase = cp210x
depends = linux
source = https://www.silabs.com/documents/login/software/Linux_3.x.x_4.x.x_VCP_Driver_Source.zip
source = dkms.conf
+ source = override-kversion.patch
sha256sums = 7d624cd66ee610fd9c6598793534ed593ac1309b3d3b3699c101d921ad9ccd7c
sha256sums = 62da72a3f8f9566326168a759cb5cc54b8c39aeb6594e1b4229774868c7eb3d2
+ sha256sums = 4dfcb1fff04a30ccd4b1b6f8d7bba0aada7712aac2b6f3deff792d98f98f651f
pkgname = cp210x
pkgname = cp210x-dkms
arch = any
depends = dkms
- provides = cp210x=2019.7.12-4
+ provides = cp210x=2019.7.12-5
conflicts = cp210x
diff --git a/PKGBUILD b/PKGBUILD
index f0319483546..7aa212b41f5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgbase=cp210x
pkgname=(cp210x cp210x-dkms)
pkgver=2019.7.12
-pkgrel=4
+pkgrel=5
pkgdesc='Silicon Labs CP210x RS232 serial adaptor driver'
url='https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers'
arch=("$(uname -m)")
@@ -10,9 +10,15 @@ license=('GPL')
depends=('linux')
makedepends=('linux-headers')
source=("https://www.silabs.com/documents/login/software/Linux_3.x.x_4.x.x_VCP_Driver_Source.zip"
- dkms.conf)
+ dkms.conf
+ override-kversion.patch)
sha256sums=('7d624cd66ee610fd9c6598793534ed593ac1309b3d3b3699c101d921ad9ccd7c'
- '62da72a3f8f9566326168a759cb5cc54b8c39aeb6594e1b4229774868c7eb3d2')
+ '62da72a3f8f9566326168a759cb5cc54b8c39aeb6594e1b4229774868c7eb3d2'
+ '4dfcb1fff04a30ccd4b1b6f8d7bba0aada7712aac2b6f3deff792d98f98f651f')
+
+prepare() {
+ patch Makefile < override-kversion.patch
+}
package_cp210x() {
make KVERSION="$(</usr/src/linux/version)"
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