summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9440f6570eef466f76f9a618fff2b675a619afbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Ranieri Althoff <ranisalt+aur at gmail dot com>

pkgname=hp-omen-wmi-dkms
pkgver=r27.578218c
pkgrel=1
url='https://github.com/ranisalt/hp-omen-linux-module'
license=('GPLv2')
arch=('x86_64')
depends=('dkms')
source=("$pkgname::git+$url.git#branch=rebase-6.10")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  install -dm755 "$pkgdir/usr/src/$pkgname-$pkgver/"
  install -Dm644 -t "$pkgdir/usr/src/$pkgname-$pkgver/src/" "$pkgname/src/"*
  sed "s/^\(PACKAGE_VERSION=\).*\$/\1$pkgver/" "$pkgname/dkms.conf" > "$pkgdir/usr/src/$pkgname-$pkgver/dkms.conf"
}