From 02fccdb09a6e8e2c07f45e3bbbfcd6e5858c0ddb Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 27 Jan 2014 19:03:55 +0100 Subject: [PATCH] New package: a10disp. --- srcpkgs/a10disp/template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/a10disp/template diff --git a/srcpkgs/a10disp/template b/srcpkgs/a10disp/template new file mode 100644 index 0000000000..b7b5349b5d --- /dev/null +++ b/srcpkgs/a10disp/template @@ -0,0 +1,26 @@ +# Template file for 'a10disp' +pkgname=a10disp +version=20140127 +revision=1 +short_desc="Utility to change the display mode of Allwinner A10/13/20 devices" +maintainer="Juan RP " +license="MIT" +homepage="https://github.com/hglm/a10disp" + +only_for_archs="armv7l" +makedepends="fbset cubieboard2-kernel-headers" +depends="fbset" + +do_fetch() { + git clone git://github.com/hglm/a10disp ${pkgname}-${version} +} + +do_build() { + cp ${XBPS_CROSS_BASE}/usr/src/cubieboard2-kernel*/include/video/sunxi_disp_ioctl.h . + $CC -Wall a10disp.c -o a10disp +} + +do_install() { + vinstall a10disp 755 usr/bin + vinstall README 644 usr/share/doc/a10disp +}