summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 660c6d43a7c27e60ba322daf996a2d734660bbd3 (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
# Maintainer: Chris Cromer <chris@cromer.cl>

pkgname=faustus-rublag-dkms-git
_pkgname=faustus
pkgver=0.2
pkgrel=2
pkgdesc="Experimental unofficial Linux platform driver module for ASUS TUF Gaming series laptops with fan mode polling."
arch=("x86_64")
url="https://github.com/rublag/faustus"
license=("GPL")
depends=("dkms")
makedepends=("git")
conflicts=("faustus-dkms-git")
source=("git+https://github.com/rublag/faustus.git")
sha512sums=("SKIP")

pkgver() {
	source "${srcdir}/${_pkgname}/dkms.conf"
	echo "${PACKAGE_VERSION}"
}

package() {
	install -dm0755 "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
	cp -r ${_pkgname}/* "${pkgdir}"/usr/src/${_pkgname}-${pkgver}/

	install -D <(printf 'blacklist %s\n' "asus_wmi" "asus_nb_wmi") "${pkgdir}/etc/modprobe.d/${_pkgname}.conf"
	install -D <(printf '%s\n' "${_pkgname}") "${pkgdir}/etc/modules-load.d/${_pkgname}.conf"
}