summaryrefslogtreecommitdiff
path: root/~coadde/xf86-video-nouveau-git
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-06-15 15:41:00 -0300
committerAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-06-15 15:41:00 -0300
commitca82307bc329389f3ae1a82ecea3a16d740ef4f4 (patch)
tree2faa61fd3852ca0e66eb2036745efbdac0f9e2ee /~coadde/xf86-video-nouveau-git
parentd6db3a3efe6a540b736c5f0c06a6ae116169b973 (diff)
parent102065d73d014700cac9a31536434f55653991df (diff)
downloadabslibre-ca82307bc329389f3ae1a82ecea3a16d740ef4f4.tar.gz
abslibre-ca82307bc329389f3ae1a82ecea3a16d740ef4f4.tar.bz2
abslibre-ca82307bc329389f3ae1a82ecea3a16d740ef4f4.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to '~coadde/xf86-video-nouveau-git')
-rw-r--r--~coadde/xf86-video-nouveau-git/PKGBUILD52
-rw-r--r--~coadde/xf86-video-nouveau-git/xf86-video-nouveau.install16
2 files changed, 68 insertions, 0 deletions
diff --git a/~coadde/xf86-video-nouveau-git/PKGBUILD b/~coadde/xf86-video-nouveau-git/PKGBUILD
new file mode 100644
index 000000000..c8e8e24c3
--- /dev/null
+++ b/~coadde/xf86-video-nouveau-git/PKGBUILD
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+# Contributor: buddabrod <buddabrod@gmail.com>
+# Contributor: Tavian Barnes <tavianator@gmail.com>
+# Maintainer (Parabola): Márcio Silva <coadde@adinet.com.uy>
+
+_name=nouveau
+_pkgname=xf86-video-nouveau
+pkgname=xf86-video-nouveau-git
+pkgver=20120612
+pkgrel=1
+pkgdesc="Libre 3D acceleration driver for nVidia cards"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://${_name}.freedesktop.org/wiki/"
+license=('GPL') #and MIT, not yet a license file, see http://nouveau.freedesktop.org/wiki/FAQ#head-09f75d03eb30011c754038a3893119a70745de4
+depends=("libdrm-git" 'udev')
+optdepends=('nouveau-dri-git: experimental gallium3d features')
+makedepends=('xorg-server-devel' 'libdrm-git' 'xf86driproto' 'git')
+conflicts=('xorg-server<1.11.99.902' "${_pkgname}")
+provides=("${_pkgname}")
+options=('!libtool')
+install=${_pkgname}.install
+
+_gitroot="git://anongit.freedesktop.org/git/${_name}/${_pkgname}"
+_gitname="${_pkgname}"
+
+build() {
+ cd ${srcdir}
+ msg "Connecting to GIT server...."
+
+ if [ -d ${startdir}/src/${_gitname} ] ; then
+ cd ${_gitname} && git pull origin
+ msg "The local files are updated."
+ else
+ git clone ${_gitroot}
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting make..."
+
+ rm -rf ${srcdir}/${_gitname}-build
+ cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
+ cd ${srcdir}/${_gitname}-build
+
+ ./autogen.sh --prefix=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/${_gitname}-build
+ make DESTDIR=${pkgdir} install
+}
diff --git a/~coadde/xf86-video-nouveau-git/xf86-video-nouveau.install b/~coadde/xf86-video-nouveau-git/xf86-video-nouveau.install
new file mode 100644
index 000000000..027154ff3
--- /dev/null
+++ b/~coadde/xf86-video-nouveau-git/xf86-video-nouveau.install
@@ -0,0 +1,16 @@
+post_install () {
+ cat << _EOF
+ ==> make sure you use KernelModeSetting (KMS)
+ ==> see http://wiki.archlinux.org/index.php/Nouveau#KMS for more
+_EOF
+}
+
+post_upgrade() {
+ if [ "`vercmp $2 0.0.15_git20100117-1`" -lt 0 ]; then
+ cat << _EOF
+ ==> ATTENTION: Usermode support has been dropped
+ ==> make sure you use KernelModeSetting (KMS)
+ ==> see http://wiki.archlinux.org/index.php/Nouveau#KMS for more
+_EOF
+ fi
+}