summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33e34fea1f47f0d1f8c4016e2193ca9ed51135c4 (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
33
34
35
36
# Maintainer: Michele Sorcinelli <michelesr@autistici.org>
pkgname=nvidia-xrun-pm
pkgver=0.3.2
pkgrel=1
epoch=
pkgdesc='Alternative version of nvidia-xrun, that relies on kernel PM instead of bbswitch'
arch=('x86_64')
url='https://github.com/michelesr/nvidia-xrun-pm'
license=('GPL')
groups=()
depends=('xorg-server' 'xorg-xinit' 'xorg-xrandr' 'nvidia' 'mesa-libgl')
makedepends=()
checkdepends=()
optdepends=()
provides=('nvidia-xrun')
conflicts=('nvidia-xrun')
replaces=()
backup=()
options=()
install=$pkgname.install
changelog=
source=("https://github.com/michelesr/nvidia-xrun-pm/archive/${pkgver}.tar.gz")
noextract=()
md5sums=('475306af1f238bd3f518486cfc5b8653')
validpgpkeys=()

package() {
  cd "${pkgname}-${pkgver}"
  install -Dm 644 nvidia-xorg.conf "$pkgdir/etc/X11/nvidia-xorg.conf"
  install -Dm 644 nvidia-xinitrc "$pkgdir/etc/X11/xinit/nvidia-xinitrc"
  install -Dm 644 config/nvidia-xrun "$pkgdir/etc/default/nvidia-xrun"
  install -Dm 755 nvidia-xrun "$pkgdir/usr/bin/nvidia-xrun"
  install -Dm 644 nvidia-xrun-pm.service "$pkgdir/etc/systemd/system/nvidia-xrun-pm.service"
  install -dm 555 "$pkgdir/etc/X11/xinit/nvidia-xinitrc.d"
  install -dm 555 "$pkgdir/etc/X11/nvidia-xorg.conf.d"
}