blob: e194180d04c67b703775f5be95146ff9d1993dfe (
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
|
# Maintainer: Cassandra Watergate (saltedcoffii) <cassandrajwatergate@gmail.com>
_pkgbase=hp-omen-linux-module
pkgname=$_pkgbase-dkms-git
pkgver=r13.9d1edb1
pkgrel=1
pkgdesc='Control the HP Omen keyboard lighting and performance settings in Linux (DKMS) (hp-omen-wmi)'
arch=('any')
depends=('dkms')
url='https://github.com/pelrun/hp-omen-linux-module'
license=('GPL2')
source=(git+$url)
sha256sums=('SKIP')
pkgver() {
cd "$_pkgbase"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
# Set version
sed -e "s/PACKAGE_VERSION=0.9/PACKAGE_VERSION=${pkgver}/" \
-i "${_pkgbase}/dkms.conf"
}
package() {
install -dm755 "${pkgdir}/usr/src/"
cp -ar "${_pkgbase}" "${pkgdir}/usr/src/${_pkgbase}-${pkgver}"
rm -r "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/.git"{,ignore}
# Set proper permissions
find "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/" -type f -exec chmod 644 {} \;
find "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/" -type d -exec chmod 755 {} \;
}
|