blob: 56a797e4a19d074e0f7f29d4bd6fc573c773f58b (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Markus Hartung <mail@hartmark.se>
_pkgname=aura-gpu
pkgname=aura-gpu-dkms-git
pkgver=r15.f168495
pkgrel=1
pkgdesc="Kernel module to expose aura gpu so we can access it from example OpenRGB."
arch=('i686' 'x86_64')
url="https://github.com/hartmark/aura-gpu"
license=('Unknown')
depends=('dkms')
provides=("$_pkgname")
source=(
"git+https://github.com/hartmark/aura-gpu"
)
sha256sums=(
'SKIP'
)
pkgver() {
cd aura-gpu
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/$_pkgname"
git apply ../../*.patch || echo "No patches found"
install -d "${pkgdir}"/usr/src/${_pkgname}-${pkgver}/
cp -r ${srcdir}/${_pkgname}/* "${pkgdir}"/usr/src/${_pkgname}-${pkgver}/
sed -i -e "/^PACKAGE_VERSION=/ s/=.*/=${pkgver}/" "${pkgdir}"/usr/src/${_pkgname}-${pkgver}/dkms.conf
install -d "${pkgdir}"/etc/modules-load.d/
echo "${_pkgname}" > "${pkgdir}"/etc/modules-load.d/${_pkgname}.conf
echo "######################################################################################"
echo "${_pkgname} will be autoloaded on reboot, to manually load straight away type:"
echo "sudo modprobe ${_pkgname}"
echo "######################################################################################"
}
# vim:set ts=2 sw=2 et:
|