[arch-commits] Commit in bumblebee/repos (6 files)

Sven-Hendrik Haase svenstaro at nymeria.archlinux.org
Thu Apr 25 08:44:20 UTC 2013


    Date: Thursday, April 25, 2013 @ 10:44:20
  Author: svenstaro
Revision: 88961

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  bumblebee/repos/community-testing-i686/
  bumblebee/repos/community-testing-i686/PKGBUILD
    (from rev 88960, bumblebee/trunk/PKGBUILD)
  bumblebee/repos/community-testing-i686/bumblebee.install
    (from rev 88960, bumblebee/trunk/bumblebee.install)
  bumblebee/repos/community-testing-x86_64/
  bumblebee/repos/community-testing-x86_64/PKGBUILD
    (from rev 88960, bumblebee/trunk/PKGBUILD)
  bumblebee/repos/community-testing-x86_64/bumblebee.install
    (from rev 88960, bumblebee/trunk/bumblebee.install)

--------------------------------------------+
 community-testing-i686/PKGBUILD            |   54 +++++++++++++++++++++++++++
 community-testing-i686/bumblebee.install   |   16 ++++++++
 community-testing-x86_64/PKGBUILD          |   54 +++++++++++++++++++++++++++
 community-testing-x86_64/bumblebee.install |   16 ++++++++
 4 files changed, 140 insertions(+)

Copied: bumblebee/repos/community-testing-i686/PKGBUILD (from rev 88960, bumblebee/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2013-04-25 08:44:20 UTC (rev 88961)
@@ -0,0 +1,54 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=bumblebee
+pkgver=3.2
+pkgrel=1
+pkgdesc="NVIDIA Optimus support for Linux through VirtualGL"
+arch=('i686' 'x86_64')
+depends=('virtualgl' 'glib2' 'mesa-libgl')
+makedepends=('help2man')
+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=('690d0b3aea4ae1fc2a72fe2719ecfd74')
+
+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 \
+        --without-pidfile
+
+    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"
+}

Copied: bumblebee/repos/community-testing-i686/bumblebee.install (from rev 88960, bumblebee/trunk/bumblebee.install)
===================================================================
--- community-testing-i686/bumblebee.install	                        (rev 0)
+++ community-testing-i686/bumblebee.install	2013-04-25 08:44:20 UTC (rev 88961)
@@ -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
+}

Copied: bumblebee/repos/community-testing-x86_64/PKGBUILD (from rev 88960, bumblebee/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2013-04-25 08:44:20 UTC (rev 88961)
@@ -0,0 +1,54 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=bumblebee
+pkgver=3.2
+pkgrel=1
+pkgdesc="NVIDIA Optimus support for Linux through VirtualGL"
+arch=('i686' 'x86_64')
+depends=('virtualgl' 'glib2' 'mesa-libgl')
+makedepends=('help2man')
+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=('690d0b3aea4ae1fc2a72fe2719ecfd74')
+
+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 \
+        --without-pidfile
+
+    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"
+}

Copied: bumblebee/repos/community-testing-x86_64/bumblebee.install (from rev 88960, bumblebee/trunk/bumblebee.install)
===================================================================
--- community-testing-x86_64/bumblebee.install	                        (rev 0)
+++ community-testing-x86_64/bumblebee.install	2013-04-25 08:44:20 UTC (rev 88961)
@@ -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