--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/X11/
+drwxr-xr-x root/root usr/include/X11/extensions/
+-rw-r--r-- root/root usr/include/X11/extensions/dri2.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libdri2.a
+-rwxr-xr-x root/root usr/lib/libdri2.la
+lrwxrwxrwx root/root usr/lib/libdri2.so -> libdri2.so.1.0.0
+lrwxrwxrwx root/root usr/lib/libdri2.so.1 -> libdri2.so.1.0.0
+-rwxr-xr-x root/root usr/lib/libdri2.so.1.0.0
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/dri2.pc
--- /dev/null
+# Description: split out dri2 client side code from mesa, libva, libvdpau, etc..
+# URL: https://github.com/robclark/libdri2
+# Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: git libdrm xorg-libx11 xorg-libxext
+
+name=libdri2
+version=git
+release=1
+source=()
+
+build() {
+ if [ ! -d $PKGMK_SOURCE_DIR/$name ]; then
+ git clone https://github.com/robclark/libdri2.git $PKGMK_SOURCE_DIR/$name
+ else
+ cd $PKGMK_SOURCE_DIR/$name && git fetch
+ fi
+ cp -r $PKGMK_SOURCE_DIR/$name $SRC
+
+ cd $SRC/$name
+ ./autogen.sh --prefix=/usr
+ make DESTDIR=$PKG install
+}