summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRobin Lange2020-10-10 10:32:50 +1100
committerRobin Lange2020-10-10 10:32:50 +1100
commit0cb395791989442a5bb1aea1df39dbb0aeb77cf8 (patch)
tree2b27fa4309519c070964dfc3f5cccc9f87c71929 /PKGBUILD
parent2ec07e0e4b3643df67e7154afdaad43090860bff (diff)
downloadaur-optimus-manager-git.tar.gz
Updated to follow repo
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 783842a10c8..ad6ff533081 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
# Maintainer: Robin Lange <robin dot langenc at gmail dot com>
-# Contributor: Robin Lange <robin dot langenc at gmail dot com>
+
pkgname=optimus-manager-git
pkgver=1.3
pkgrel=1
@@ -9,15 +9,16 @@ url="https://github.com/Askannz/optimus-manager"
license=('MIT')
conflicts=("optimus-manager")
provides=("optimus-manager=$pkgver")
-depends=('python3' 'python-setuptools' 'python-dbus' 'mesa-demos' 'xorg-xrandr')
+depends=('python3' 'python-setuptools' 'python-dbus' 'mesa-demos' 'xorg-xrandr'
+ 'python-py3nvml' 'python-psutil')
optdepends=('bbswitch: alternative power switching method'
'acpi_call: alternative power switching method'
'xf86-video-intel: provides the Xorg intel driver')
makedepends=('python-setuptools' 'git')
-backup=('etc/optimus-manager/xorg-intel.conf'
- 'etc/optimus-manager/xorg-nvidia.conf'
+backup=('etc/optimus-manager/xorg-integrated-gpu.conf'
+ 'etc/optimus-manager/xorg-nvidia-gpu.conf'
- 'etc/optimus-manager/xsetup-intel.sh'
+ 'etc/optimus-manager/xsetup-integrated.sh'
'etc/optimus-manager/xsetup-nvidia.sh'
'etc/optimus-manager/xsetup-hybrid.sh'
@@ -36,7 +37,7 @@ pkgver() {
build() {
cd "${srcdir}/optimus-manager/"
- python3 setup.py build
+ /usr/bin/python3 setup.py build
}
@@ -57,16 +58,16 @@ package() {
install -Dm644 login_managers/sddm/20-optimus-manager.conf "$pkgdir/etc/sddm.conf.d/20-optimus-manager.conf"
install -Dm644 login_managers/lightdm/20-optimus-manager.conf "$pkgdir/etc/lightdm/lightdm.conf.d/20-optimus-manager.conf"
- install -Dm644 config/xorg-intel.conf "$pkgdir/etc/optimus-manager/xorg-intel.conf"
- install -Dm644 config/xorg-nvidia.conf "$pkgdir/etc/optimus-manager/xorg-nvidia.conf"
+ install -Dm644 config/xorg-integrated-gpu.conf "$pkgdir/etc/optimus-manager/xorg-integrated-gpu.conf"
+ install -Dm644 config/xorg-nvidia-gpu.conf "$pkgdir/etc/optimus-manager/xorg-nvidia-gpu.conf"
- install -Dm755 config/xsetup-intel.sh "$pkgdir/etc/optimus-manager/xsetup-intel.sh"
install -Dm755 config/xsetup-nvidia.sh "$pkgdir/etc/optimus-manager/xsetup-nvidia.sh"
install -Dm755 config/xsetup-hybrid.sh "$pkgdir/etc/optimus-manager/xsetup-hybrid.sh"
+ install -Dm755 config/xsetup-integrated.sh "$pkgdir/etc/optimus-manager/xsetup-integrated.sh"
install -Dm755 config/nvidia-enable.sh "$pkgdir/etc/optimus-manager/nvidia-enable.sh"
install -Dm755 config/nvidia-disable.sh "$pkgdir/etc/optimus-manager/nvidia-disable.sh"
- python3 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ /usr/bin/python3 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}