mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
57 lines
1.2 KiB
Bash
57 lines
1.2 KiB
Bash
# Maintainer : Jason Plum <jplum@archlinuxarm.org>
|
|
|
|
# Copyright (C) 2012 Alejandro Mery <amery@geeks.cl>, GPLv2+
|
|
|
|
|
|
|
|
pkgname=sunxi-tools
|
|
pkgver=20130201
|
|
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')
|
|
|
|
_gitroot="git://github.com/linux-sunxi/sunxi-tools.git"
|
|
_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 --depth 1 ${_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
|
|
cp pio $pkgdir/usr/bin
|
|
cp nand-part $pkgdir/usr/bin
|
|
|
|
# make symlinks for bin2fex/fex2bin
|
|
cd $pkgdir/usr/bin
|
|
ln -s fexc fex2bin
|
|
ln -s fexc bin2fex
|
|
}
|