blob: 2ed0437234a6d7726a5501292e43ba0068f94216 (
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=2
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'
'797b68e988862d7c10bb8cfb2eeaa5e8')
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"
}
|