From f13da34684cb53c4e7f3b20d0b14d1f1af63ee4d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 25 Jan 2014 13:50:12 +0100 Subject: [PATCH] New package: sunxi-tools. --- srcpkgs/sunxi-tools/template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/sunxi-tools/template diff --git a/srcpkgs/sunxi-tools/template b/srcpkgs/sunxi-tools/template new file mode 100644 index 00000000000..0947fb14fd0 --- /dev/null +++ b/srcpkgs/sunxi-tools/template @@ -0,0 +1,26 @@ +# Template file for 'sunxi-tools' +pkgname=sunxi-tools +version=20140125 +revision=1 +build_style=gnu-makefile +hostmakedepends="pkg-config" +makedepends="libusbx-devel" +short_desc="Tools to help hacking Allwinner AXX (aka sunxi) based devices" +maintainer="Juan RP " +license="GPL-2" +homepage="https://github.com/linux-sunxi/sunxi-tools" + +do_fetch() { + git clone git://github.com/linux-sunxi/sunxi-tools ${pkgname}-${version} +} + +do_install() { + vinstall README 644 usr/share/doc/${pkgname} + + for f in fexc bootinfo fel usb-boot fel-gpio pio nand-part; do + vinstall ${f} 755 usr/bin + done + cd ${DESTDIR}/usr/bin + ln -s fexc fex2bin + ln -s fexc bin2fex +}