2010-01-01 01:13:35 +00:00
|
|
|
# Maintainer : Jason Plum <jplum@archlinuxarm.org>
|
|
|
|
|
|
|
|
# Copyright (C) 2012 Alejandro Mery <amery@geeks.cl>, GPLv2+
|
|
|
|
|
2012-07-17 22:10:17 +00:00
|
|
|
|
2010-01-01 01:13:35 +00:00
|
|
|
|
|
|
|
pkgname=sunxi-tools
|
2013-01-25 16:26:06 +00:00
|
|
|
pkgver=20130125
|
2010-01-01 01:13:35 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Tools for Allwinner A10 (sun4i): fex, fel, pheonix_info"
|
|
|
|
arch=('arm' 'armv7h')
|
|
|
|
url="https://github.com/amery/sunxi-tools"
|
|
|
|
license=('GPLv2+')
|
|
|
|
depends=('libusb')
|
|
|
|
makedepends=('git' 'pkg-config' 'libusb')
|
|
|
|
provides=('sunxi-tools')
|
|
|
|
|
2013-01-25 16:26:06 +00:00
|
|
|
_gitroot="git://github.com/linux-sunxi/sunxi-tools.git"
|
2010-01-01 01:13:35 +00:00
|
|
|
_gitname="sunxi-tools"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir
|
|
|
|
|
|
|
|
## Git checkout
|
|
|
|
if [ -d $srcdir/${_gitname} ] ; then
|
|
|
|
msg "Git checkout: Updating existing tree"
|
|
|
|
cd ${_gitname} && git pull
|
|
|
|
msg "Git checkout: Tree has been updated"
|
|
|
|
else
|
|
|
|
msg "Git checkout: Retrieving sources"
|
|
|
|
git clone ${_gitroot}
|
|
|
|
fi
|
|
|
|
msg "Checkout completed"
|
|
|
|
|
|
|
|
cd ${srcdir}/${_gitname}
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/${_gitname}
|
|
|
|
|
|
|
|
# create directory structure
|
|
|
|
mkdir -p $pkgdir/usr/bin
|
|
|
|
|
|
|
|
# copy binaries & readme
|
|
|
|
cp fexc $pkgdir/usr/bin
|
|
|
|
cp bootinfo $pkgdir/usr/bin
|
|
|
|
cp fel $pkgdir/usr/bin
|
|
|
|
|
|
|
|
# make symlinks for bin2fex/fex2bin
|
|
|
|
cd $pkgdir/usr/bin
|
|
|
|
ln -s fexc fex2bin
|
|
|
|
ln -s fexc bin2fex
|
|
|
|
}
|