summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergej Pupykin2019-06-28 17:32:33 +0300
committerSergej Pupykin2019-06-28 17:32:33 +0300
commit808312509398391bdf743005438f59999edadb1f (patch)
tree674292ad92ffeb520388fe244cdaa46567363d29
downloadaur-808312509398391bdf743005438f59999edadb1f.tar.gz
init
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD25
-rw-r--r--dkms.conf.in7
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f7853d1580e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by mksrcinfo v8
+# Fri Jun 28 14:31:53 UTC 2019
+pkgbase = spi-config-dkms
+ pkgdesc = spi board configuration without having to recompile the kernel
+ pkgver = 20190628
+ pkgrel = 1
+ url = https://github.com/msperl/spi-config
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = dkms
+ optdepends = linux-headers: build the module against Arch kernel
+ optdepends = linux-ck-headers: build the module against Linux-ck kernel
+ optdepends = linux-lts-headers: build the module against LTS Arch kernel
+ source = git+https://github.com/msperl/spi-config.git
+ source = dkms.conf.in
+ md5sums = SKIP
+ md5sums = 98b3c3eb1aef6cf87b2df29a74a5ef56
+
+pkgname = spi-config-dkms
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4cec260495e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+pkgname=spi-config-dkms
+pkgver=20190628
+pkgrel=1
+pkgdesc="spi board configuration without having to recompile the kernel"
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('dkms')
+makedepends=('git')
+optdepends=('linux-headers: build the module against Arch kernel'
+ 'linux-ck-headers: build the module against Linux-ck kernel'
+ 'linux-lts-headers: build the module against LTS Arch kernel')
+url='https://github.com/msperl/spi-config'
+source=("git+https://github.com/msperl/spi-config.git"
+ 'dkms.conf.in')
+md5sums=('SKIP'
+ '98b3c3eb1aef6cf87b2df29a74a5ef56')
+
+package() {
+ cd ${srcdir}/spi-config
+ install -dm755 "${pkgdir}/usr/src/spi-config-${pkgver}/"
+ for i in "${srcdir}/spi-config/"{Makefile,*.c}; do
+ install -D -m644 "${i}" "${pkgdir}/usr/src/spi-config-${pkgver}/"
+ done
+ sed "s/#MODULE_VERSION#/${pkgver}/" "${srcdir}/dkms.conf.in" > "${pkgdir}/usr/src/spi-config-${pkgver}/dkms.conf"
+}
diff --git a/dkms.conf.in b/dkms.conf.in
new file mode 100644
index 00000000000..222f46c24f5
--- /dev/null
+++ b/dkms.conf.in
@@ -0,0 +1,7 @@
+PACKAGE_NAME="spi-config"
+PACKAGE_VERSION="#MODULE_VERSION#"
+MAKE[0]="make KVERSION=$kernelver BUILD_KERNEL=$kernelver"
+CLEAN="make clean"
+BUILT_MODULE_NAME[0]="spi-config"
+DEST_MODULE_LOCATION[0]="/extras"
+AUTOINSTALL="yes"