summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Menzhinsky2019-12-19 13:47:16 +0300
committerAlexander Menzhinsky2019-12-19 13:47:16 +0300
commit795593533b68440e1e15a055b54e2efe1719fae6 (patch)
treea7edb5fdd49ec367d983db71f2a29e987dab02d4
parenteb0a231c0b001fd75c2b20fbd860311a17862afc (diff)
downloadaur-795593533b68440e1e15a055b54e2efe1719fae6.tar.gz
Remove linux extramodules version usage
-rw-r--r--PKGBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 42e10995053..dce36a8e9ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,25 +3,24 @@
pkgbase=cp210x
pkgname=(cp210x cp210x-dkms)
pkgver=2019.7.12
-pkgrel=2
+pkgrel=3
pkgdesc='Silicon Labs CP210x RS232 serial adaptor driver'
url='https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers'
-arch=('any')
+arch=("$(uname -m)")
license=('GPL')
depends=('linux')
makedepends=('linux-headers')
-_extramodules=extramodules-ARCH
source=("https://www.silabs.com/documents/login/software/Linux_3.x.x_4.x.x_VCP_Driver_Source.zip"
dkms.conf)
sha256sums=('7d624cd66ee610fd9c6598793534ed593ac1309b3d3b3699c101d921ad9ccd7c'
'62da72a3f8f9566326168a759cb5cc54b8c39aeb6594e1b4229774868c7eb3d2')
build() {
- make KVERSION="$(cat /usr/lib/modules/$_extramodules/version)"
+ make KVERSION="$(</usr/src/linux/version)"
}
package_cp210x() {
- install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 *.ko
+ install -Dt "$pkgdir/usr/lib/modules/$(</usr/src/linux/version)/extramodules" -m644 *.ko
find "$pkgdir" -name '*.ko' -exec xz {} +
echo cp210x | install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/cp210x.conf"
@@ -30,6 +29,7 @@ package_cp210x() {
}
package_cp210x-dkms() {
+ arch=("any")
depends=(dkms)
provides=("cp210x=$pkgver-$pkgrel")
conflicts=(cp210x)