New package: sunxi-tools.

This commit is contained in:
Juan RP 2014-01-25 13:50:12 +01:00
parent e288b3c93d
commit f13da34684
1 changed files with 26 additions and 0 deletions

View File

@ -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 <xtraeme@gmail.com>"
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
}