void-packages/srcpkgs/sunxi-tools/template

27 lines
674 B
Bash

# Template file for 'sunxi-tools'
pkgname=sunxi-tools
version=20150526
revision=1
hostmakedepends="pkg-config git"
makedepends="libusb-devel"
short_desc="Tools to help hacking Allwinner AXX (aka sunxi) based devices"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
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_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
}