blob: b5d99fb43672bab5a82896b251349eb10c19f2f0 (
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
|
# Maintainer: Mingi Sung <sungmg@saltyming.net>
# Contributor: Pedro Henrique <pedro00dk@gmail.com>
_pkgname=nvidia-exec
pkgname=${_pkgname}-git
pkgver=v0.2.9
pkgrel=1
pkgdesc="Run programs in nvidia optimus setups with power management for Xorg and Wayland without log out"
arch=("x86_64")
url="https://github.com/pedro00dk/nvidia-exec"
license=('GPL')
depends=('NVIDIA-MODULE' 'python' 'lshw' 'lsof')
provides=(${_pkgname})
conflicts=(${_pkgname})
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd ${_pkgname}
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
package() {
cd "${_pkgname}"
install -Dm 755 nvx.py "${pkgdir}/usr/bin/nvx"
# install -Dm 755 nvx-suspend-restore "${pkgdir}/usr/lib/systemd/system-sleep/nvx-suspend-restore"
install -Dm 644 nvx.service "${pkgdir}/usr/lib/systemd/system/nvx.service"
install -Dm 644 nvx-modprobe.conf "${pkgdir}/usr/lib/modprobe.d/nvx.conf"
install -Dm 666 nvx-options.conf "${pkgdir}/etc/nvx.conf"
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|