1 # Maintainer: Samsagax <samsagax@gmail.com>
2 # Contributor: fleger <florian6.leger@laposte.net>
7 pkgdesc="Stable branch of Bumblebee. Optimus Support for Linux Through VirtualGL."
9 depends=('xorg-utils' 'virtualgl' 'nvidia-utils-bumblebee')
10 optdepends=('acpi_call: turn on/off discrete card (unstable)')
11 if [ "$CARCH" = "x86_64" ]; then
12 optdepends+=('lib32-virtualgl: run 32bit applications with optirun'
13 'lib32-nvidia-utils-bumblebee: run 32bit applications with optirun')
15 url="https://github.com/Bumblebee-Project/Bumblebee"
17 install='bumblebee.install'
18 conflicts=('bumblebee-nouveau')
19 provides=('bumblebee')
20 backup=('etc/bumblebee/bumblebee.conf')
21 source=("https://github.com/downloads/Bumblebee-Project/Bumblebee/$pkgname-$pkgver.tar.gz" 'bumblebee.handler.archlinux')
22 md5sums=('cda3f529b07461cc5abcea58a50df5cc'
23 '1bce7fcc4027dfe94f2fda37e7a4bcc8')
25 _temp_dir="$srcdir/install-temp"
28 cd "$srcdir/$pkgname-$pkgver"
30 ./install --dest-dir="$_temp_dir" \
31 --driver=nouveau,nvidia \
32 --actions=build,install
33 install -D -m755 "$srcdir/bumblebee.handler.archlinux" "$_temp_dir/etc/rc.d/bumblebee"
38 cp -a etc usr "$pkgdir"