summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dc25fd64e9f586b3fe8b66ad3cd22ed5bd528c8a (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
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=clevo-indicator-git
pkgver=r42.b88e763
pkgrel=1
pkgdesc="Fan control indicator for Clevo laptops"
arch=('x86_64')
url="https://github.com/dbeniamine/clevo-indicator"
license=('Unlicense')
depends=('libappindicator-gtk3')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/dbeniamine/clevo-indicator.git')
sha256sums=('SKIP')

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

prepare() {
	cd "$srcdir/${pkgname%-git}"
	sed -i 's/sudo install -m 4750 -g adm $(TARGET)/install -Dm 4750 -g adm $(TARGET) -t/g' Makefile
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DSTDIR="$pkgdir/usr" install
}