1 # This script is incomplete and in development. To install bumblebee use the one in the AUR
2 # http://aur.archlinux.org/packages.php?ID=49469
4 # Maintainer: Samsagax <samsagax@gmail.com>
6 pkgname=bumblebee-develop-git
9 pkgdesc="Develop branch of Bumblebee-Project. USE ONLY AS DIRECTED! Optimus Support for Linux Through VirtualGL. Power management not supported"
10 arch=('i686' 'x86_64')
11 depends=('virtualgl-bin' 'dkms-nvidia' 'nvidia-utils-bumblebee')
12 #optdepends=('acpi_call: turn on/off discrete card (unstable)')
13 if [ "$CARCH" = "x86_64" ]; then
14 optdepends[0]='lib32-nvidia-utils-bumblebee: run 32bit applications with optirun'
16 url="https://github.com/Bumblebee-Project/Bumblebee"
18 install=('bumblebee.install')
19 conflicts=("bumblebee-nouveau" 'bumblebee')
20 provides=('bumblebee')
22 _gitroot="git://github.com/Bumblebee-Project/Bumblebee.git"
26 _config_dir=etc/bumblebee
32 msg "Connecting to GIT server...."
34 if [ -d $_gitname ] ; then
35 cd $_gitname && git pull origin
36 msg "The local files are updated."
38 git clone $_gitroot -b $_gitbranch $_gitname --depth=1
41 msg "GIT checkout done or server timeout"
46 local _config_dir=$pkgdir/etc/bumblebee
47 local _bin_dir=$pkgdir/usr/bin/
48 local _lib_dir=$pkgdir/usr/lib/bumblebee
49 local _install_dir=$pkgdir/usr/share/bumblebee
51 cd $srcdir/$_gitname/install-files
53 # Installing Bumblebee scripts
54 install -d -m755 "$_bin_dir"
55 install -d -m755 "$_config_dir"
56 install -d -m755 "$_lib_dir"
57 install -d -m755 "$_install_dir"
59 install -m755 common-functions "$_lib_dir"
60 install -m755 common-paths "$_lib_dir"
61 install -D -m755 drivers/nvidia.options.archlinux "$_lib_dir/drivers/nvidia.options"
62 install -D -m755 bumblebee.handler $pkgdir/etc/rc.d/bumblebee
63 install -m755 bumblebee "$_bin_dir"
64 install -m755 optirun "$_bin_dir"
65 #install -D -m755 bumblebee.handler $pkgdir/etc/rc.d/bumblebee
68 install -D -m644 xorg.conf.nvidia "$_config_dir"
69 install -D -m644 bumblebee.conf "$_config_dir"
72 install -D -m644 optirun.bash_completion $pkgdir/etc/bash_completion.d/optirun