updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / flashbench-git / PKGBUILD
blob8cfd29621a0c2c0a9bacf2069bc83ebd1383af77
1 # Maintainer: Marti Raudsepp <marti@juffo.org>
3 pkgname=flashbench-git
4 pkgver=20110219
5 pkgrel=1
6 pkgdesc="Tool for benchmarking and classifying flash memory drives"
7 arch=(i686 x86_64)
8 license=('unknown')
9 url="https://lwn.net/SubscriberLink/428584/354d16fe00c90072/"
10 depends=()
11 makedepends=()
12 replaces=('flashbench')
13 provides=('flashbench')
14 conflicts=('flashbench')
15 source=()
17 _gitroot="git://git.linaro.org/people/arnd/flashbench.git"
18 _gitname="flashbench"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
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"
38   make
39   mkdir -p $pkgdir/usr/bin
40   install -m755 flashbench erase $pkgdir/usr/bin/