--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/EGL/
+-rw-r--r-- root/root usr/include/EGL/egl.h
+-rw-r--r-- root/root usr/include/EGL/eglext.h
+-rw-r--r-- root/root usr/include/EGL/eglplatform.h
+drwxr-xr-x root/root usr/include/GLES/
+-rw-r--r-- root/root usr/include/GLES/gl.h
+-rw-r--r-- root/root usr/include/GLES/glext.h
+-rw-r--r-- root/root usr/include/GLES/glplatform.h
+drwxr-xr-x root/root usr/include/GLES2/
+-rw-r--r-- root/root usr/include/GLES2/gl2.h
+-rw-r--r-- root/root usr/include/GLES2/gl2ext.h
+-rw-r--r-- root/root usr/include/GLES2/gl2platform.h
+drwxr-xr-x root/root usr/include/KHR/
+-rw-r--r-- root/root usr/include/KHR/khrplatform.h
+drwxr-xr-x root/root usr/lib/
+lrwxrwxrwx root/root usr/lib/libEGL.so -> libEGL.so.1
+lrwxrwxrwx root/root usr/lib/libEGL.so.1 -> libEGL.so.1.4
+lrwxrwxrwx root/root usr/lib/libEGL.so.1.4 -> libMali.so
+lrwxrwxrwx root/root usr/lib/libGLESv1_CM.so -> libGLESv1_CM.so.1
+lrwxrwxrwx root/root usr/lib/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1
+lrwxrwxrwx root/root usr/lib/libGLESv1_CM.so.1.1 -> libMali.so
+lrwxrwxrwx root/root usr/lib/libGLESv2.so -> libGLESv2.so.2
+lrwxrwxrwx root/root usr/lib/libGLESv2.so.2 -> libGLESv2.so.2.0
+lrwxrwxrwx root/root usr/lib/libGLESv2.so.2.0 -> libMali.so
+-rw-r--r-- root/root usr/lib/libMali.so
--- /dev/null
+# Description: Sunxi Mali-400 support libraries.
+# URL: https://github.com/linux-sunxi/sunxi-mali
+# 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: libdri2 libump mesa3d
+
+name=sunxi-mali
+version=git
+release=1
+source=()
+
+build() {
+ if [ ! -d $PKGMK_SOURCE_DIR/$name ]; then
+ git clone https://github.com/linux-sunxi/sunxi-mali.git $PKGMK_SOURCE_DIR/$name
+ else
+ cd $PKGMK_SOURCE_DIR/$name && git fetch
+ fi
+ cp -r $PKGMK_SOURCE_DIR/$name $SRC
+
+ mkdir -p $PKG/usr/lib
+
+ cd $SRC/$name
+ git submodule init
+ git submodule update
+ make -j1 config ABI=armhf VERSION=r3p0
+ make DESTDIR=$PKG install
+}
--- /dev/null
+
+README for sunxi-mali
+
+# Mesa3d overwritten files by sunxi-mali
+# ls -la /usr/lib/libEGL.so*
+
+# Mesa3d files
+# lrwxrwxrwx 1 root root 11 Oct 4 2013 /usr/lib/libEGL.so -> libEGL.so.1
+# lrwxrwxrwx 1 root root 15 Mar 13 12:39 /usr/lib/libEGL.so.1 -> libEGL.so.1.0.0
+# -rwxr-xr-x 1 root root 88K Mar 10 12:23 /usr/lib/libEGL.so.1.0.0
+
+# sunxi-mali files
+# lrwxrwxrwx 1 root root 10 Oct 4 2013 /usr/lib/libEGL.so.1.4 -> libMali.so
+
+# Make a backup to restore mesa3d
+# mv /usr/lib/libEGL.so.1 /usr/lib/libEGL_so_1
+
+# Link to the new file provided by sunxi-mali
+# ln -s libEGL.so.1.4 /usr/lib/libEGL.so.1
+
+# To restore the backup, rename the file again to restore the old link:
+# mv /usr/lib/libEGL_so_1 /usr/lib/libEGL.so.1
--- /dev/null
+#!/bin/sh
+
+# Mesa3d overwritten files by sunxi-mali
+#$ ls -la /usr/lib/libEGL.so*
+
+# Mesa3d files
+#lrwxrwxrwx 1 root root 11 Oct 4 2013 /usr/lib/libEGL.so -> libEGL.so.1
+#lrwxrwxrwx 1 root root 15 Mar 13 12:39 /usr/lib/libEGL.so.1 -> libEGL.so.1.0.0
+#-rwxr-xr-x 1 root root 88K Mar 10 12:23 /usr/lib/libEGL.so.1.0.0
+
+# sunxi-mali files
+#lrwxrwxrwx 1 root root 10 Oct 4 2013 /usr/lib/libEGL.so.1.4 -> libMali.so
+
+# Make a backup to restore mesa3d
+mv /usr/lib/libEGL.so.1 /usr/lib/libEGL_so_1
+
+# Link to the new file provided by sunxi-mali
+ln -s libEGL.so.1.4 /usr/lib/libEGL.so.1