summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/flashbench-git/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/pcr/flashbench-git/PKGBUILD b/pcr/flashbench-git/PKGBUILD
new file mode 100644
index 000000000..489962b05
--- /dev/null
+++ b/pcr/flashbench-git/PKGBUILD
@@ -0,0 +1,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/"
+}