1 # Maintainer: Marti Raudsepp <marti@juffo.org>
6 pkgdesc="Tool for benchmarking and classifying flash memory drives"
9 url="https://lwn.net/SubscriberLink/428584/354d16fe00c90072/"
12 replaces=('flashbench')
13 provides=('flashbench')
14 conflicts=('flashbench')
17 _gitroot="git://git.linaro.org/people/arnd/flashbench.git"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
39 mkdir -p $pkgdir/usr/bin
40 install -m755 flashbench erase $pkgdir/usr/bin/