summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d7c78ef021903ab76a29920edb5431a4ccdc5ce5 (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
# Maintainer: Nelson Santos <nbsantos@gmail.com>
_pkgname=egpu-switcher
pkgname=$_pkgname-git
pkgver=0.16.0.r0.gd22ce2e
pkgrel=1
pkgdesc="Distribution agnostic script that works with NVIDIA and AMD cards."
arch=('any')
url="https://github.com/hertg/egpu-switcher"
license=('GPL')
depends=('pciutils>=3.3.0' 'bash>=4.0')
makedepends=('git')
provides=($_pkgname)
conflicts=($_pkgname)
install=${pkgname}.install
source=("${pkgname}::git+https://github.com/hertg/egpu-switcher.git")
md5sums=('SKIP')

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

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