summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8176b43c4c0bf159bfe126fec9920c2d42c5eac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Victor Bayas <victorsbayas at gmail dot com>
# Contributor: Victor Bayas <victorsbayas at gmail dot com>

pkgname=envycontrol
pkgver=2.1.1
pkgrel=1
pkgdesc="Easy GPU switching for Nvidia Optimus laptops under Linux"
arch=(any)
url="https://github.com/geminis3/envycontrol"
license=(MIT)
depends=(python xorg-xrandr)
makedepends=(python-setuptools git)
source=("git+https://github.com/geminis3/envycontrol.git#tag=v$pkgver")
sha256sums=('SKIP')

package() {
  cd "${srcdir}/envycontrol/"

  python setup.py install --root="$pkgdir/" --optimize=1

  # Copy package license to system
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}