linux-surface/pkg/arch/surface-aggregator-module/PKGBUILD
2020-01-08 11:38:41 +09:00

34 lines
886 B
Bash

# Maintainer: Blaž Hrastnik <blaz@mxxn.io>
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
}