summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAliaksandr Mianzhynski2020-07-02 17:41:20 +0300
committerAliaksandr Mianzhynski2020-07-02 17:41:20 +0300
commit13d46eaf1577013a016777a6d30dcd5bc097a2d6 (patch)
tree9fab8bca607f1b27127488c4c9b31e471126af98
downloadaur-13d46eaf1577013a016777a6d30dcd5bc097a2d6.tar.gz
Init
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD21
-rw-r--r--dkms.conf9
3 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7e408a2ee96
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = cp210x-dkms
+ pkgdesc = Silicon Labs CP210x RS232 serial adaptor driver
+ pkgver = 2019.7.12
+ pkgrel = 6
+ 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
+ conflicts = cp210x
+ source = https://www.silabs.com/documents/login/software/Linux_3.x.x_4.x.x_VCP_Driver_Source.zip
+ source = dkms.conf
+ sha256sums = 7d624cd66ee610fd9c6598793534ed593ac1309b3d3b3699c101d921ad9ccd7c
+ sha256sums = 62da72a3f8f9566326168a759cb5cc54b8c39aeb6594e1b4229774868c7eb3d2
+
+pkgname = cp210x-dkms
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..30e910f04df
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Alexander Menzhinsky <amenzhinsky@gmail.com>
+pkgname=cp210x-dkms
+pkgver=2019.7.12
+pkgrel=6
+conflicts=(cp210x)
+provides=("cp210x=$pkgver-$pkgrel")
+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")
+license=('GPL')
+depends=(dkms)
+source=("https://www.silabs.com/documents/login/software/Linux_3.x.x_4.x.x_VCP_Driver_Source.zip"
+ dkms.conf)
+sha256sums=('7d624cd66ee610fd9c6598793534ed593ac1309b3d3b3699c101d921ad9ccd7c'
+ '62da72a3f8f9566326168a759cb5cc54b8c39aeb6594e1b4229774868c7eb3d2')
+
+package() {
+ install -Dt "$pkgdir/usr/src/cp210x-$pkgver" -m644 Makefile cp210x.c dkms.conf
+
+ echo cp210x | install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/cp210x.conf"
+}
diff --git a/dkms.conf b/dkms.conf
new file mode 100644
index 00000000000..5723f5bdb79
--- /dev/null
+++ b/dkms.conf
@@ -0,0 +1,9 @@
+PACKAGE_NAME="cp210x"
+PACKAGE_VERSION="#MODULE_VERSION#"
+AUTOINSTALL="yes"
+
+MAKE[0]="make KVERSION=$kernelver"
+CLEAN="make clean"
+
+BUILT_MODULE_NAME[0]="cp210x"
+DEST_MODULE_LOCATION[0]="/kernel/drivers/cp210x"