1 # This script is incomplete and in development.
3 # Maintainer: Samsagax <samsagax@gmail.com>
8 pkgdesc="Develop branch of Bumblebee. Optimus Support for Linux Through VirtualGL. You need to install proper drivers separately. Can be used with Nouveau or Nvidia"
11 depends=('virtualgl' 'libbsd' 'glib2')
12 optdepends=('xf86-video-nouveau: Nouveau driver' 'nouveau-dri: 3D acceleration features fo Nouveau' 'mesa: 3D acceleration features fo Nouveau' 'bbswitch: switch on/off discrete card' 'nvidia-utils-bumblebee: Nvidia utils not breaking LibGL' 'nvidia: Nvidia kernel driver')
13 if [ "$CARCH" = "x86_64" ]; then
14 optdepends[${#optdepends[@]}]='lib32-virtualgl: run 32bit applications with optirun'
16 url="https://github.com/Bumblebee-Project/bumblebeed"
18 install='bumblebee.install'
19 conflicts=('bumblebee')
20 provides=('bumblebee')
21 backup=('etc/bumblebee/bumblebee.conf')
22 source=('bumblebeed.in')
23 md5sums=('4ccc7eb0e1141dac18812586d27c8fb6')
25 _gitroot="git://github.com/Bumblebee-Project/bumblebeed.git"
27 _gitbranch="release-3.0"
31 msg "Connecting to GIT server...."
32 if [ -d $_gitname ] ; then
33 cd $_gitname && git pull origin
34 msg "The local files are updated."
36 git clone "$_gitroot" "$_gitname" -b "$_gitbranch"
39 msg "GIT checkout done or server timeout"
43 CONF_DRIVER_MODULE_NVIDIA=nvidia \
44 CONF_LDPATH_NVIDIA=/usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee \
45 CONF_MODPATH_NVIDIA=/usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules \
52 cd "$srcdir/$_gitname"
53 make install DESTDIR="$pkgdir"
54 install -D -m755 "$srcdir/bumblebeed.in" "$pkgdir/etc/rc.d/bumblebeed"