# Template file for 'sunxi-tools' pkgname=sunxi-tools reverts=20150526_1 version=20150226 revision=1 _commit=b80e7ce7bd5c2015465c2fd0e5990d47c05c7f8e hostmakedepends="pkg-config git" makedepends="libusb-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" distfiles="$homepage/archive/$_commit.tar.gz" checksum=93922d654df5153d468b0f7900f96fe858fe457894ff2dd0f5dfb5c94b65475b wrksrc="$pkgname-$_commit" do_build() { make CC=$CC } 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 }