summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f18576f740d53e4a067e6d961c4176dce59ef82f (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
pkgname=prime-gpuchooser
pkgver=r10.26a36a6
pkgrel=1
pkgdesc="A graphical tool to choose the GPU used for 3D rendering with PRIME. Requires dri3."
arch=('any')
url="https://github.com/ChristophHaag/gpuchooser"
license=('GPL')
depends=('python-pyqt5' 'mesa-demos' 'driconf')
makedepends=(git)
source=("git+https://github.com/ChristophHaag/gpuchooser.git")
md5sums=("SKIP")

#prepare() {
#  cd $srcdir/gpuchooser
#}

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


package() {
  cd "$srcdir/gpuchooser"
  install -Dm644 gpuchooser.py "$pkgdir/usr/lib/gpuchooser/gpuchooser.py"
  install -Dm644 ui_gpuchooser.py "$pkgdir/usr/lib/gpuchooser/ui_gpuchooser.py"
  install -Dm755 gpuchooser "$pkgdir/usr/bin/gpuchooser"
  install -Dm644 gpuchooser.desktop "$pkgdir/usr/share/applications/gpuchooser.desktop"
}