summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 019de342166ff3d5b47d9a4de53951236e46aa1b (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
# Maintainer: Gregory Land

pkgname=supergfxctl-git
pkgver=4.0.4.r0.g7eabe91
pkgrel=1
pkgdesc="A utility for Linux graphics switching on Intel/AMD iGPU + nVidia dGPU laptops"
arch=('x86_64')
url="https://gitlab.com/asus-linux/supergfxctl"
license=('MPL2')
depends=()
makedepends=('git' 'rust')
provides=('supergfxctl')
conflicts=('supergfxctl')
source=('git+https://gitlab.com/asus-linux/supergfxctl.git')
md5sums=('SKIP')
_gitdir=${pkgname%"-git"}

pkgver() {
	cd "$srcdir/$_gitdir"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/$_gitdir"
	make build
}

package() {
	cd "$srcdir/$_gitdir"
	make DESTDIR="$pkgdir" install
}