# Maintainer: Blaž Hrastnik pkgname=surface-aggregator-module-dkms _modname=surface_sam _modver=0.1 pkgver=0.1 pkgrel=1 pkgdesc="ACPI/Platform Drivers for Surface gen5+ products, dkms version" arch=(any) url="http://github.com/linux-surface/surface-aggregator-module" license=('GPL2') provides=('surface_sam') depends=('dkms') _srcname=source _srcbranch='master' source=( "$_srcname::git+https://github.com/linux-surface/surface-aggregator-module.git#branch=$_srcbranch" surface-sam.conf ) sha256sums=( 'SKIP' 'a1fe1e49bfcbb7a2e24ceeeb1fc0e8f36d5cc577b4ef5ae17f15a007a91e2860' ) package() { cd ${srcdir}/${_srcname}/ install -d "${pkgdir}"/usr/src/${_modname}-${_modver}/ cp -t "${pkgdir}"/usr/src/${_modname}-${_modver}/ module/* # blacklist the precompiled modules install -Dt "${pkgdir}"/etc/modprobe.d/surface-sam.conf -m644 surface-sam.conf }