summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee3a0d9162e73abfe7376d3fa1c0adace90c3c9a (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
# Maintainer: Cameron Otsuka <cameron@otsuka.haus>
# Contributor: Cameron Otsuka <cameron@otsuka.haus>
pkgname="autoaspm-git"
pkgver=r5.e3bbeb5
pkgrel=2
pkgdesc="A script that automatically activates ASPM for all supported devices on Linux"
arch=("any")
url="https://github.com/notthebee/AutoASPM"
license=("unknown")
depends=("python")
makedepends=("git")
provides=("autoaspm=${pkgver}")
conflicts=("autoaspm")
source=($pkgname::git+https://github.com/notthebee/AutoASPM.git $pkgname.service)
sha256sums=("SKIP" "SKIP")

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

package() {
	cd $pkgname/
	install -Dm755 autoaspm.py $pkgdir/usr/bin/autoaspm.py
	install -Dm644 ../$pkgname.service $pkgdir/usr/lib/systemd/system/${pkgname}.service
}