updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / bumblebee / PKGBUILD
blob584a92c8fbd2ecc6af78c2190bd8c31a6915cfa5
1 # Maintainer: Samsagax <samsagax@gmail.com>
2 # Contributor: fleger <florian6.leger@laposte.net>
4 pkgname=bumblebee
5 pkgver=2.4.1
6 pkgrel=7
7 pkgdesc="Stable branch of Bumblebee. Optimus Support for Linux Through VirtualGL."
8 arch=('i686' 'x86_64')
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"
16 license=("GPL3")
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"
27 build() {
28     cd "$srcdir/$pkgname-$pkgver"
29     mkdir -p "$_temp_dir"
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"
36 package() {
37     cd "$_temp_dir"
38     cp -a etc usr "$pkgdir"