summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18628bc35c33682bb32d12e6f743c1c5dd6d9ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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'
         '332867a6ee6f165c6d27004d16ea5f4c')

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"
}