summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSergej Pupykin2019-06-28 17:32:33 +0300
committerSergej Pupykin2019-06-28 17:32:33 +0300
commit808312509398391bdf743005438f59999edadb1f (patch)
tree674292ad92ffeb520388fe244cdaa46567363d29 /PKGBUILD
downloadaur-808312509398391bdf743005438f59999edadb1f.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
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"
+}