[arch-commits] Commit in (5 files)
Sven-Hendrik Haase
svenstaro at nymeria.archlinux.org
Thu Apr 4 03:39:51 UTC 2013
Date: Thursday, April 4, 2013 @ 05:39:50
Author: svenstaro
Revision: 87607
Add bumblebee
Added:
bumblebee/
bumblebee/repos/
bumblebee/trunk/
bumblebee/trunk/PKGBUILD
bumblebee/trunk/bumblebee.install
-------------------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
bumblebee.install | 16 ++++++++++++++++
2 files changed, 68 insertions(+)
Added: bumblebee/trunk/PKGBUILD
===================================================================
--- bumblebee/trunk/PKGBUILD (rev 0)
+++ bumblebee/trunk/PKGBUILD 2013-04-04 03:39:50 UTC (rev 87607)
@@ -0,0 +1,52 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=bumblebee
+pkgver=3.1
+pkgrel=1
+pkgdesc="NVIDIA Optimus support for Linux through VirtualGL"
+arch=('i686' 'x86_64')
+depends=('virtualgl' 'libbsd' 'glib2')
+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')
+url="http://www.Bumblebee-Project.org"
+license=("GPL3")
+install='bumblebee.install'
+provides=('bumblebee')
+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-bumblebee:/usr/lib32/nvidia-bumblebee \
+ CONF_MODPATH_NVIDIA=/usr/lib/nvidia-bumblebee/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"
+}
Added: bumblebee/trunk/bumblebee.install
===================================================================
--- bumblebee/trunk/bumblebee.install (rev 0)
+++ bumblebee/trunk/bumblebee.install 2013-04-04 03:39:50 UTC (rev 87607)
@@ -0,0 +1,16 @@
+_notice() {
+ echo "Don't forget to add yourself to the 'bumblebee' group to use Bumblebee"
+}
+
+post_upgrade() {
+ getent group "bumblebee" &>/dev/null || groupadd -r bumblebee
+}
+
+post_remove() {
+ getent group "bumblebee" &>/dev/null && groupdel bumblebee 1>/dev/null
+}
+
+post_install() {
+ post_upgrade
+ _notice
+}
More information about the arch-commits
mailing list