updated on Sun Jan 15 00:02:00 UTC 2012
[aur-mirror.git] / bumblebee-git / PKGBUILD
blobdefb18a691bf32f203c56ffcb207a6841b508b5c
1 # This script is incomplete and in development.
3 # Maintainer: Samsagax <samsagax@gmail.com>
5 pkgname=bumblebee-git
6 pkgver=20120114
7 pkgrel=1
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"
9 arch=('i686' 'x86_64')
10 makedepends=('git')
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"
17 license=("GPL3")
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"
26 _gitname="bumblebeed"
27 _gitbranch="release-3.0"
29 build() {
30     cd "$srcdir"
31     msg "Connecting to GIT server...."
32     if [ -d $_gitname ] ; then
33         cd $_gitname && git pull origin
34         msg "The local files are updated."
35     else
36         git clone "$_gitroot" "$_gitname" -b "$_gitbranch"
37         cd "$_gitname"
38     fi
39     msg "GIT checkout done or server timeout"
41     autoreconf -fi
42     ./configure \
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 \
46         --prefix=/usr \
47         --sysconfdir=/etc
48     make
51 package() {
52     cd "$srcdir/$_gitname"
53     make install DESTDIR="$pkgdir"
54     install -D -m755 "$srcdir/bumblebeed.in" "$pkgdir/etc/rc.d/bumblebeed"