diff options
author | bssb | 2019-01-20 17:11:44 -0500 |
---|---|---|
committer | bssb | 2019-01-20 17:11:44 -0500 |
commit | 7f827255653e6643458769548704e4f529d171f1 (patch) | |
tree | ae9075b754bc51d38ad555a20c3a6b18f31d560e | |
download | aur-7f827255653e6643458769548704e4f529d171f1.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b9c6bbc8609f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = optimus-manager-git + pkgdesc = Management utility to handle GPU switching for Optimus laptops. + pkgver = r239.0833353 + pkgrel = 1 + url = https://github.com/Askannz/optimus-manager + arch = any + license = MIT + makedepends = git + makedepends = python-setuptools + depends = python + depends = python-setuptools + depends = nvidia + depends = mesa-demos + depends = bbswitch + depends = xorg-xrandr + provides = optimus-manager + conflicts = optimus-manager + backup = etc/optimus-manager/xorg-intel.conf + backup = etc/optimus-manager/xorg-nvidia.conf + source = git+https://github.com/Askannz/optimus-manager.git + sha256sums = SKIP + +pkgname = optimus-manager-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d95bf235db3e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Barry Smith <irunarch at gmx dot com> +# Contributor: Robin Lange <robin dot langenc at gmail dot com> +_pkgname=optimus-manager +pkgname=$_pkgname-git +pkgver=r239.0833353 +pkgrel=1 +pkgdesc="Management utility to handle GPU switching for Optimus laptops." +arch=('any') +url="https://github.com/Askannz/optimus-manager" +license=('MIT') +conflicts=("$_pkgname") +provides=("$_pkgname") +depends=('python' 'python-setuptools' 'nvidia' 'mesa-demos' 'bbswitch' 'xorg-xrandr') +makedepends=('git' 'python-setuptools') +backup=('etc/optimus-manager/xorg-intel.conf' + 'etc/optimus-manager/xorg-nvidia.conf') +source=("git+https://github.com/Askannz/$_pkgname.git") +sha256sums=('SKIP') + +pkgver() { + cd $_pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/$_pkgname/" + python setup.py build +} + +package() { + cd "${srcdir}/$_pkgname/" + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 modules/optimus-manager.conf "$pkgdir/etc/modprobe.d/optimus-manager.conf" + install -Dm755 xorg/optimus-manager_Xsetup "$pkgdir/usr/bin/optimus-manager_Xsetup" + install -Dm644 systemd/optimus-manager.service "$pkgdir/usr/lib/systemd/system/optimus-manager.service" + install -Dm644 systemd/99-optimus-manager.conf "$pkgdir/usr/lib/systemd/system/display-manager.service.d/99-optimus-manager.conf" + install -Dm644 optimus-manager.conf "$pkgdir/usr/share/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" + + mkdir -p "$pkgdir/var/lib/optimus-manager/" + + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build +} |