blob: b9e031a692b060ce6a346ee979c3fcdd64d74511 (
plain)
1 # Description: An effort to make Nvidia Optimus laptops work in GNU/Linux
2 # URL: https://bumblebee-project.org/
3 # Maintainer: Matt Housh, jaeger at crux dot ninja
4 # Depends on: libbsd xorg-libx11 glib bbswitch
5
6 name=bumblebee
7 version=3.2.1
8 release=2
9 source=(http://bumblebee-project.org/$name-$version.tar.gz \
10 libglvnd.patch blacklist.conf bumblebeed.rc)
11
12 build() {
13 export PKG_CONFIG_PATH="/usr/opt/libbsd/lib/pkgconfig"
14 CFLAGS="${CFLAGS} -fcommon"
15 cd $name-$version
16 patch -p1 -i $SRC/libglvnd.patch
17 ./configure \
18 CONF_DRIVER_MODULE_NVIDIA=nvidia \
19 CONF_LDPATH_NVIDIA=/usr/lib/nvidia:/usr/lib32/nvidia:/usr/lib:/usr/lib32 \
20 CONF_MODPATH_NVIDIA=/usr/lib/nvidia/xorg,/usr/lib/xorg/modules \
21 --prefix=/usr \
22 --sysconfdir=/etc
23 make
24 make DESTDIR=$PKG install
25 rm -r $PKG/usr/share/doc
26 mv $PKG/etc/bash_completion.d/{bumblebee,optirun}
27 install -D -m 0644 $SRC/blacklist.conf $PKG/etc/modprobe.d/bumblebee.conf
28 install -D -m 0755 $SRC/bumblebeed.rc $PKG/etc/rc.d/bumblebeed
29 }
|