diff options
author | Emil Suleymanov | 2022-05-26 13:34:39 +0200 |
---|---|---|
committer | Emil Suleymanov | 2022-05-26 13:34:39 +0200 |
commit | 02f2dcf8dd7eed96d93111ae2dfba8a797287c6e (patch) | |
tree | 26c0b8ff5225ab67cbc92ce1a3fdb928b6051193 | |
parent | 7be8217251cad871267a89ed4f62461e3eb908a6 (diff) | |
download | aur-02f2dcf8dd7eed96d93111ae2dfba8a797287c6e.tar.gz |
Use rogerjames99 repo
-rw-r--r-- | 0001-Arch-compatible-paths-for-kernel-headers-modules.patch | 27 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 34 insertions, 4 deletions
diff --git a/0001-Arch-compatible-paths-for-kernel-headers-modules.patch b/0001-Arch-compatible-paths-for-kernel-headers-modules.patch new file mode 100644 index 000000000000..9e30ff5d4ad0 --- /dev/null +++ b/0001-Arch-compatible-paths-for-kernel-headers-modules.patch @@ -0,0 +1,27 @@ +From 14ecae90765a25385c2f8b1d648478ca021ec460 Mon Sep 17 00:00:00 2001 +From: Emil Suleymanov <suleymanovemil8@gmail.com> +Date: Thu, 26 May 2022 13:00:02 +0200 +Subject: [PATCH] Arch compatible paths for kernel headers/modules + +--- + Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index fcb6c8a..340760e 100644 +--- a/Makefile ++++ b/Makefile +@@ -4,8 +4,8 @@ MODULE_VERSION=1.0.0 + DKMS := $(shell which dkms) + PWD := $(shell pwd) + KVERSION := $(shell uname -r) +-KERNEL_DIR = /usr/src/linux-headers-$(KVERSION)/ +-MODULE_DIR = /lib/modules/$(KVERSION) ++KERNEL_DIR = /usr/lib/modules/$(KVERSION)/build ++MODULE_DIR = /usr/lib/modules/$(KVERSION)/ + + ifneq ($(DKMS),) + MODULE_INSTALLED := $(shell dkms status $(MODULE_NAME)) +-- +2.36.1 + @@ -1,5 +1,5 @@ pkgname=spi-ch341-usb-dkms -pkgver=r16.79bbe57 +pkgver=r45.cfb61d0 pkgver() { cd "$srcdir/spi-ch341-usb" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" @@ -7,17 +7,20 @@ pkgver() { pkgrel=1 pkgdesc="SPI/GPIO driver for CH341" arch=(any) -url="https://github.com/gschorcht/spi-ch341-usb" +url="https://github.com/rogerjames99/spi-ch341-usb" license=('GPL') groups=() depends=() makedepends=('git') -source=('git+https://github.com/gschorcht/spi-ch341-usb.git') -sha256sums=('SKIP') +source=('git+https://github.com/rogerjames99/spi-ch341-usb.git' + '0001-Arch-compatible-paths-for-kernel-headers-modules.patch') +sha256sums=('SKIP' + '75041421dbbf41b35c8f7a3992d601ca304c129ca9b9f348d575c57999f3cbc0') prepare() { cd "$srcdir"/spi-ch341-usb sed -i 's|/extras|/extramodules|' dkms.conf + patch -Np1 -i ../0001-Arch-compatible-paths-for-kernel-headers-modules.patch } package() { |