2012-02-05 19:51:46 +08:00
#
2012-10-18 06:06:18 +08:00
# Platform Packages for Chakra, part of chakra-project.org
2012-02-05 19:51:46 +08:00
#
2012-06-15 10:13:30 +08:00
# maintainer abveritas@chakra-project.org
2012-02-05 19:51:46 +08:00
# This script is incomplete and in development.
# AUR-Maintainer: Samsagax <samsagax@gmail.com>
pkgname = bumblebee
2012-08-27 01:03:04 +08:00
pkgver = 3.0.1
2012-10-18 06:06:18 +08:00
pkgrel = 2
2012-02-05 19:51:46 +08:00
pkgdesc = "Bumblebee brings Optimus Support for Linux Through VirtualGL. You need to install proper drivers separately. Can be used with Nouveau or Nvidia"
arch = ( 'i686' 'x86_64' )
depends = ( 'virtualgl' 'libbsd' 'glib2' )
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' )
if [ " $CARCH " = "x86_64" ] ; then
optdepends[ ${# optdepends [@] } ] = 'lib32-virtualgl: run 32bit applications with optirun'
fi
url = "http://www.Bumblebee-Project.org"
license = ( "GPL3" )
install = 'bumblebee.install'
provides = ( 'bumblebee' )
2012-10-18 06:06:18 +08:00
backup = ( 'etc/bumblebee/bumblebee.conf'
'etc/bumblebee/xorg.conf.nouveau'
'etc/bumblebee/xorg.conf.nvidia' )
source = ( " https://github.com/downloads/Bumblebee-Project/Bumblebee/ ${ pkgname } - ${ pkgver } .tar.gz "
# 'bumblebeed.in'
'99-remove-nvidia-dev.rules' )
2012-08-27 01:03:04 +08:00
md5sums = ( '7b3fd4bfa0d59e877abdb75cbdba30f8'
2012-10-18 06:06:18 +08:00
# '8b05da760e9236ecff2c6820616119f7'
'b2a411f8610107946a9bec3bcb282f7b' )
2012-02-05 19:51:46 +08:00
build( ) {
cd " ${ srcdir } / ${ pkgname } - ${ pkgver } "
./configure \
CONF_DRIVER_MODULE_NVIDIA = nvidia \
CONF_LDPATH_NVIDIA = /usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee \
CONF_MODPATH_NVIDIA = /usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules \
--prefix= /usr \
--sysconfdir= /etc
make
}
package( ) {
cd " ${ srcdir } / ${ pkgname } - ${ pkgver } "
make install DESTDIR = " $pkgdir "
2012-10-18 06:06:18 +08:00
# Install init script
# install -D -m755 "${srcdir}/bumblebeed.in" "${pkgdir}/etc/rc.d/bumblebeed"
# Install systemd unit
install -D -m644 "scripts/systemd/bumblebeed.service" " ${ pkgdir } /usr/lib/systemd/system/bumblebeed.service "
2012-02-05 19:51:46 +08:00
# Make bash_completion work
mv -v " ${ pkgdir } /etc/bash_completion.d/bumblebee " " ${ pkgdir } /etc/bash_completion.d/optirun "
2012-10-18 06:06:18 +08:00
#Install udev rule to prevent GH-#144
install -D -m644 " $srcdir /99-remove-nvidia-dev.rules " " ${ pkgdir } /lib/udev/rules.d/99-remove-nvidia-dev.rules "
}