From 3f27a9878363a74dfa2296dc88979ecb416e96a7 Mon Sep 17 00:00:00 2001 From: Daniel Wallace Date: Mon, 8 Apr 2013 14:06:09 -0400 Subject: [PATCH] update flashbench to pacman 4.1 --- aur/flashbench-git/PKGBUILD | 39 +++++++++++++------------------------ 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/aur/flashbench-git/PKGBUILD b/aur/flashbench-git/PKGBUILD index 3e04421ed..e7d0043ee 100644 --- a/aur/flashbench-git/PKGBUILD +++ b/aur/flashbench-git/PKGBUILD @@ -1,41 +1,28 @@ # Maintainer: Marti Raudsepp pkgname=flashbench-git -pkgver=20110219 +pkgver=62.2e30b19 +pkgver() { + cd "$srcdir/$pkgname" + echo $(git rev-list --count master).$(git rev-parse --short master) +} +epoch=1 pkgrel=1 pkgdesc="Tool for benchmarking and classifying flash memory drives" arch=(i686 x86_64) license=('unknown') url="https://lwn.net/SubscriberLink/428584/354d16fe00c90072/" -depends=() makedepends=('git') replaces=('flashbench') provides=('flashbench') conflicts=('flashbench') -source=() - -_gitroot="git://git.linaro.org/people/arnd/flashbench.git" -_gitname="flashbench" +source=("$pkgname::git://git.linaro.org/people/arnd/flashbench.git") +md5sums=('SKIP') build() { - cd "$srcdir" - msg "Connecting to GIT server...." - - if [ -d $_gitname ] ; then - cd $_gitname && git pull origin - msg "The local files are updated." - else - git clone $_gitroot $_gitname - fi - - msg "GIT checkout done or server timeout" - msg "Starting make..." - - rm -rf "$srcdir/$_gitname-build" - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" - cd "$srcdir/$_gitname-build" - - make - mkdir -p $pkgdir/usr/bin - install -m755 flashbench erase $pkgdir/usr/bin/ + make -C "$srcdir/$pkgname" +} +package(){ + install -Dm755 "$srcdir/$pkgname/flashbench" "$pkgdir/usr/bin/flashbench" + install -Dm755 "$srcdir/$pkgname/erase" "$pkgdir/usr/bin/flashbench" }