summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAliaksandr Mianzhynski2020-06-04 09:06:03 +0300
committerAliaksandr Mianzhynski2020-06-04 09:06:03 +0300
commitf9fdc6547af0e14f967373eaa845841677a11389 (patch)
tree4e9c6a528c12404634c3f8248e153ac2b7edec63
parentf57cd53758a041af3d6fa4789b56fbd271925aac (diff)
downloadaur-f9fdc6547af0e14f967373eaa845841677a11389.tar.gz
Move compilation to package_cp210x
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 4 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 14afe9b38d9..46bf0d01548 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cp210x
pkgdesc = Silicon Labs CP210x RS232 serial adaptor driver
pkgver = 2019.7.12
- pkgrel = 3
+ pkgrel = 4
url = https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
arch = x86_64
license = GPL
@@ -17,6 +17,6 @@ pkgname = cp210x
pkgname = cp210x-dkms
arch = any
depends = dkms
- provides = cp210x=2019.7.12-3
+ provides = cp210x=2019.7.12-4
conflicts = cp210x
diff --git a/PKGBUILD b/PKGBUILD
index dce36a8e9ce..f0319483546 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,8 @@
# Maintainer: Alexander Menzhinsky <amenzhinsky@gmail.com>
-
pkgbase=cp210x
pkgname=(cp210x cp210x-dkms)
pkgver=2019.7.12
-pkgrel=3
+pkgrel=4
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)")
@@ -15,11 +14,8 @@ source=("https://www.silabs.com/documents/login/software/Linux_3.x.x_4.x.x_VCP_D
sha256sums=('7d624cd66ee610fd9c6598793534ed593ac1309b3d3b3699c101d921ad9ccd7c'
'62da72a3f8f9566326168a759cb5cc54b8c39aeb6594e1b4229774868c7eb3d2')
-build() {
- make KVERSION="$(</usr/src/linux/version)"
-}
-
package_cp210x() {
+ make KVERSION="$(</usr/src/linux/version)"
install -Dt "$pkgdir/usr/lib/modules/$(</usr/src/linux/version)/extramodules" -m644 *.ko
find "$pkgdir" -name '*.ko' -exec xz {} +