diff options
Diffstat (limited to 'community/bumblebee/PKGBUILD')
-rw-r--r-- | community/bumblebee/PKGBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/community/bumblebee/PKGBUILD b/community/bumblebee/PKGBUILD new file mode 100644 index 000000000..ce7c6231b --- /dev/null +++ b/community/bumblebee/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> + +pkgname=bumblebee +pkgver=3.1 +pkgrel=5 +pkgdesc="NVIDIA Optimus support for Linux through VirtualGL" +arch=('i686' 'x86_64') +depends=('virtualgl' 'libbsd' 'glib2' 'mesa-libgl') +optdepends=('xf86-video-nouveau: nouveau driver' + 'nouveau-dri: 3D acceleration features fo nouveau' + 'bbswitch: switch on/off discrete card' + 'nvidia: NVIDIA kernel driver' + 'primus: faster back-end for optirun') +if [ "$CARCH" = "x86_64" ]; then + optdepends[${#optdepends[@]}]='lib32-virtualgl: run 32bit applications with optirun' + optdepends[${#optdepends[@]}]='lib32-primus: faster back-end for optirun' +fi +conflicts=('nvidia-libgl') +provides=('nvidia-libgl') +url="http://www.bumblebee-project.org" +license=("GPL3") +install='bumblebee.install' +backup=('etc/bumblebee/bumblebee.conf' + 'etc/bumblebee/xorg.conf.nouveau' + 'etc/bumblebee/xorg.conf.nvidia') +source=("http://www.bumblebee-project.org/${pkgname}-${pkgver}.tar.gz") +md5sums=('de515ef51b1e0714c2f1b2a95f83e77e') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure \ + CONF_DRIVER_MODULE_NVIDIA=nvidia \ + CONF_LDPATH_NVIDIA=/usr/lib/nvidia:/usr/lib32/nvidia \ + CONF_MODPATH_NVIDIA=/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules \ + --prefix=/usr \ + --sysconfdir=/etc + + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make install DESTDIR="$pkgdir" + + # Install systemd unit + install -D -m644 "scripts/systemd/bumblebeed.service" "${pkgdir}/usr/lib/systemd/system/bumblebeed.service" + + # Make bash_completion work + mv -v "${pkgdir}/etc/bash_completion.d/bumblebee" "${pkgdir}/etc/bash_completion.d/optirun" +} |