diff --git a/alarm/xf86-video-armsoc-rockchip/0001-drmmode_display-include-sys-stat.h.patch b/alarm/xf86-video-armsoc-rockchip/0001-drmmode_display-include-sys-stat.h.patch new file mode 100644 index 000000000..157d0a8b8 --- /dev/null +++ b/alarm/xf86-video-armsoc-rockchip/0001-drmmode_display-include-sys-stat.h.patch @@ -0,0 +1,26 @@ +From de6b51ae1dc02ecb48cb9642af31dd2d27d3ae04 Mon Sep 17 00:00:00 2001 +From: Kevin Mihelich +Date: Fri, 26 Jun 2015 21:31:12 -0600 +Subject: [PATCH] drmmode_display: include sys/stat.h + +Signed-off-by: Kevin Mihelich +--- + src/drmmode_display.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/drmmode_display.c b/src/drmmode_display.c +index 58c1a84..cf64424 100644 +--- a/src/drmmode_display.c ++++ b/src/drmmode_display.c +@@ -51,6 +51,8 @@ + #include + #include "drmmode_driver.h" + ++#include ++ + struct drmmode_cursor_rec { + /* hardware cursor: */ + struct armsoc_bo *bo; +-- +2.4.4 + diff --git a/alarm/xf86-video-armsoc-rockchip/PKGBUILD b/alarm/xf86-video-armsoc-rockchip/PKGBUILD new file mode 100644 index 000000000..e0f78fdee --- /dev/null +++ b/alarm/xf86-video-armsoc-rockchip/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Kevin Mihelich + +buildarch=4 + +pkgname=xf86-video-armsoc-rockchip +_commit=a095d0437af074701fb5ff02b3b986f8986dd128 +pkgver=258.a095d04 +pkgrel=1 +pkgdesc='X.org graphics driver for ARM graphics - Rockchip' +arch=('armv7h') +url="https://github.com/mmind/xf86-video-armsoc" +license=('GPL2') +makedepends=('git' 'pkgconfig' 'xorg-server-devel' 'resourceproto' 'scrnsaverproto') +options=('!libtool') +conflicts=(xf86-video-armsoc) +provides=(xf86-video-armsoc) +source=("$pkgname::git+https://github.com/mmind/xf86-video-armsoc.git#commit=${_commit}" + '0001-drmmode_display-include-sys-stat.h.patch') +md5sums=('SKIP' + '89c59460f599996b0ac5669c0762567e') + +pkgver() { + cd $pkgname + echo $(git rev-list --count makepkg).$(git rev-parse --short makepkg) +} + +prepare() { + cd $pkgname + git apply ../0001-drmmode_display-include-sys-stat.h.patch +} + +build() { + cd $pkgname + + CFLAGS=`echo $CFLAGS | sed -e 's/vfpv3-d16/neon/'` && CXXFLAGS="$CFLAGS" + ./autogen.sh --prefix=/usr --with-drmmode=rockchip + make +} + +package() { + cd $pkgname + + make DESTDIR="${pkgdir}" install +}