summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD27
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5cd7ec90a12
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+# Generated by mksrcinfo v8
+# Fri Jun 28 14:43:06 UTC 2019
+pkgbase = spi-ch341-usb-dkms
+ pkgdesc = SPI/GPIO driver for CH341
+ pkgver = r16.79bbe57
+ pkgrel = 1
+ url = https://github.com/gschorcht/spi-ch341-usb
+ arch = any
+ license = GPL
+ makedepends = git
+ source = git+https://github.com/gschorcht/spi-ch341-usb.git
+ sha256sums = SKIP
+
+pkgname = spi-ch341-usb-dkms
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bcd1fbc87d2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+pkgname=spi-ch341-usb-dkms
+pkgver=r16.79bbe57
+pkgver() {
+ cd "$srcdir/spi-ch341-usb"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+pkgrel=1
+pkgdesc="SPI/GPIO driver for CH341"
+arch=(any)
+url="https://github.com/gschorcht/spi-ch341-usb"
+license=('GPL')
+groups=()
+depends=()
+makedepends=('git')
+source=('git+https://github.com/gschorcht/spi-ch341-usb.git')
+sha256sums=('SKIP')
+
+prepare() {
+ cd "$srcdir"/spi-ch341-usb
+ sed -i 's|/extras|/extramodules|' dkms.conf
+}
+
+package() {
+ install -dm0755 "${pkgdir}"/usr/src
+ cp -a "${srcdir}"/spi-ch341-usb "${pkgdir}"/usr/src/spi-ch341-usb-$pkgver
+ sed -i "s|PACKAGE_VERSION=\".*\"|PACKAGE_VERSION=\"$pkgver\"|" "${pkgdir}"/usr/src/spi-ch341-usb-$pkgver/dkms.conf
+}