2013-06-17 14:50:08 +00:00
|
|
|
# Template file for 'bumblebee'
|
|
|
|
pkgname=bumblebee
|
|
|
|
version=3.2.1
|
2014-10-13 10:54:52 +00:00
|
|
|
revision=5
|
2013-06-17 14:50:08 +00:00
|
|
|
build_style=gnu-configure
|
2014-01-01 15:10:11 +00:00
|
|
|
configure_args="
|
|
|
|
CONF_DRIVER_MODULE_NVIDIA=nvidia
|
|
|
|
CONF_LDPATH_NVIDIA=/usr/lib
|
|
|
|
CONF_MODPATH_NVIDIA=/usr/lib/xorg/modules
|
|
|
|
--sbindir=/usr/bin
|
|
|
|
--with-udev-rules=/usr/lib/udev/rules.d/
|
|
|
|
--without-pidfile"
|
2014-02-18 14:33:22 +00:00
|
|
|
hostmakedepends="pkg-config help2man"
|
|
|
|
makedepends="VirtualGL-devel glib-devel MesaLib-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="VirtualGL"
|
|
|
|
conf_files="
|
|
|
|
/etc/bumblebee/bumblebee.conf
|
|
|
|
/etc/bumblebee/xorg.conf.nouveau
|
|
|
|
/etc/bumblebee/xorg.conf.nvidia"
|
|
|
|
system_groups="bumblebee"
|
2013-06-17 14:50:08 +00:00
|
|
|
short_desc="NVIDIA Optimus support for Linux through VirtualGL"
|
2014-06-08 09:52:36 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-06-17 14:50:08 +00:00
|
|
|
homepage="http://www.bumblebee-project.org/"
|
2014-11-01 18:11:54 +00:00
|
|
|
update_site="http://www.bumblebee-project.org/install.html"
|
2013-06-17 14:50:08 +00:00
|
|
|
license="GPL-3"
|
|
|
|
distfiles="http://www.bumblebee-project.org/${pkgname}-${version}.tar.gz"
|
|
|
|
checksum=1018703b07e2f607a4641249d69478ce076ae5a1e9dd6cff5694d394fa7ee30e
|
2014-02-18 14:33:22 +00:00
|
|
|
|
|
|
|
only_for_archs="i686 x86_64"
|
2014-10-10 12:44:44 +00:00
|
|
|
build_options="systemd"
|
2014-10-13 10:54:52 +00:00
|
|
|
replaces="runit-void<20141013_2"
|
2014-10-10 12:44:44 +00:00
|
|
|
|
2013-06-17 14:50:08 +00:00
|
|
|
post_install() {
|
2014-10-13 10:54:52 +00:00
|
|
|
vsv bumblebeed
|
2014-10-10 12:44:44 +00:00
|
|
|
# Install systemd service
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall scripts/systemd/bumblebeed.service 644 usr/lib/systemd/system
|
|
|
|
fi
|
2013-06-17 14:50:08 +00:00
|
|
|
|
|
|
|
# Make bash_completion work
|
2014-02-18 14:35:27 +00:00
|
|
|
vmkdir usr/share/bash-completion/completions
|
2013-06-17 14:50:08 +00:00
|
|
|
mv -v ${DESTDIR}/etc/bash_completion.d/bumblebee \
|
2013-06-17 14:58:26 +00:00
|
|
|
${DESTDIR}/usr/share/bash-completion/completions/optirun
|
2013-06-17 14:50:08 +00:00
|
|
|
}
|