summaryrefslogtreecommitdiff
path: root/pcr/flashbench-git/PKGBUILD
blob: 489962b05ce4836fa6685c373d9360a7d8a43d6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer (Arch): lestb <tkhdlstfl dot l plus aur at gmail dot com>
# Contributor (Arch): Marti Raudsepp <marti@juffo.org>

pkgname=flashbench-git
pkgver=r62.2e30b19
pkgrel=1
pkgdesc="Tool for benchmarking and classifying flash memory drives"
arch=(i686 x86_64)
license=('GPL2')
url="https://lwn.net/SubscriberLink/428584/354d16fe00c90072/"
replaces=('flashbench')
provides=('flashbench')
conflicts=('flashbench')
makedepends=('git')
source=('git+https://git.linaro.org/people/arnd.bergmann/flashbench.git')
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/flashbench"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/flashbench"
  make
}

package() {
  cd "${srcdir}/flashbench"
  mkdir -p "${pkgdir}/usr/bin"
  install -m755 flashbench erase "${pkgdir}/usr/bin/"
}