summaryrefslogtreecommitdiff
path: root/libre/bumblebee-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/bumblebee-libre/PKGBUILD')
-rw-r--r--libre/bumblebee-libre/PKGBUILD15
1 files changed, 12 insertions, 3 deletions
diff --git a/libre/bumblebee-libre/PKGBUILD b/libre/bumblebee-libre/PKGBUILD
index 833069ff2..aff067a94 100644
--- a/libre/bumblebee-libre/PKGBUILD
+++ b/libre/bumblebee-libre/PKGBUILD
@@ -4,7 +4,7 @@
_pkgname=bumblebee
pkgname=bumblebee-libre
pkgver=3.1
-pkgrel=5
+pkgrel=5.1
pkgdesc="NVIDIA Optimus support for GNU/Linux through VirtualGL, without nonfree nvidia driver support"
arch=('i686' 'x86_64')
depends=('virtualgl' 'libbsd' 'glib2' 'mesa-libgl')
@@ -24,12 +24,21 @@ license=("GPL3")
install='bumblebee.install'
backup=('etc/bumblebee/bumblebee.conf'
'etc/bumblebee/xorg.conf.nouveau')
-source=("http://www.bumblebee-project.org/${_pkgname}-${pkgver}.tar.gz")
-md5sums=('de515ef51b1e0714c2f1b2a95f83e77e')
+source=("http://www.bumblebee-project.org/${_pkgname}-${pkgver}.tar.gz"
+ 'libre.patch')
+md5sums=('de515ef51b1e0714c2f1b2a95f83e77e'
+ 'f8b6044310039911236f53a625c611a6')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
+ # Remove nonfree references to nonfree nvidia driver and unnecessaries files
+ rm -rv "README.markdown"
+ rm -rv "conf/"{99-remove-nvidia-dev.rules,xorg.conf.nvidia}
+ rm -rv "doc"
+ rm -rv "scripts/bumblebee-bugreport.in"
+ patch -Np1 -i "${srcdir}/libre.patch"
+
./configure \
CONF_DRIVER=nouveau \
--prefix=/usr \