#!/bin/sh -e
patch -p1 < rootless-nouveau.patch
export LDFLAGS="-Wl,-z,lazy"
./configure \
--prefix=/usr
make
make DESTDIR="$1" install