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