2010-01-01 01:13:35 +00:00
|
|
|
# Maintainer : Jason Plum <jplum@archlinuxarm.org>
|
|
|
|
|
|
|
|
# Copyright (C) 2012 Alejandro Mery <amery@geeks.cl>, GPLv2+
|
|
|
|
|
2014-01-20 23:40:33 +00:00
|
|
|
buildarch=4
|
2010-01-01 01:13:35 +00:00
|
|
|
|
|
|
|
pkgname=sunxi-tools
|
2014-01-20 23:18:17 +00:00
|
|
|
pkgver=20140120
|
2010-01-01 01:13:35 +00:00
|
|
|
pkgrel=1
|
2014-01-20 23:18:17 +00:00
|
|
|
pkgdesc="Tools for Allwinner SoC family: fex, fel, pheonix_info"
|
2010-01-01 01:13:35 +00:00
|
|
|
arch=('arm' 'armv7h')
|
2014-01-20 23:18:17 +00:00
|
|
|
url="https://github.com/linux-sunxi/sunxi-tools"
|
2010-01-01 01:13:35 +00:00
|
|
|
license=('GPLv2+')
|
|
|
|
depends=('libusb')
|
2014-01-20 23:40:33 +00:00
|
|
|
makedepends=('git')
|
|
|
|
source=("git://github.com/linux-sunxi/sunxi-tools.git")
|
|
|
|
md5sums=('SKIP')
|
2010-01-01 01:13:35 +00:00
|
|
|
|
|
|
|
build() {
|
2014-01-20 23:40:33 +00:00
|
|
|
cd ${srcdir}/${pkgname}
|
2010-01-01 01:13:35 +00:00
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2014-01-20 23:40:33 +00:00
|
|
|
cd $srcdir/${pkgname}
|
2010-01-01 01:13:35 +00:00
|
|
|
|
2014-01-20 23:18:17 +00:00
|
|
|
# install README & LICENSE
|
|
|
|
install -Dm 644 README $pkgdir/usr/share/doc/$pkgname/README
|
|
|
|
install -Dm 644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
|
|
|
|
|
2010-01-01 01:13:35 +00:00
|
|
|
# create directory structure
|
|
|
|
mkdir -p $pkgdir/usr/bin
|
|
|
|
|
2014-01-20 23:18:17 +00:00
|
|
|
# copy binaries
|
2010-01-01 01:13:35 +00:00
|
|
|
cp fexc $pkgdir/usr/bin
|
|
|
|
cp bootinfo $pkgdir/usr/bin
|
|
|
|
cp fel $pkgdir/usr/bin
|
2014-01-20 23:18:17 +00:00
|
|
|
cp usb-boot $pkgdir/usr/bin
|
|
|
|
cp fel-gpio $pkgdir/usr/bin
|
2013-02-02 01:12:21 +00:00
|
|
|
cp pio $pkgdir/usr/bin
|
|
|
|
cp nand-part $pkgdir/usr/bin
|
2010-01-01 01:13:35 +00:00
|
|
|
|
|
|
|
# make symlinks for bin2fex/fex2bin
|
|
|
|
cd $pkgdir/usr/bin
|
|
|
|
ln -s fexc fex2bin
|
2014-01-20 23:18:17 +00:00
|
|
|
ln -s fexc bin2fex
|
2010-01-01 01:13:35 +00:00
|
|
|
}
|