summaryrefslogtreecommitdiff
path: root/pcr/flashbench-git
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-02-02 02:37:17 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-02-02 02:37:17 -0300
commit46d1542e94c1e9f4e5b956bb314b42913c2b6f97 (patch)
treec3c7fe2400ab692657bd721fce499102fcf5e880 /pcr/flashbench-git
parent45ca62858f416dd23feabb70df851fb680681177 (diff)
downloadabslibre-46d1542e94c1e9f4e5b956bb314b42913c2b6f97.tar.gz
abslibre-46d1542e94c1e9f4e5b956bb314b42913c2b6f97.tar.bz2
abslibre-46d1542e94c1e9f4e5b956bb314b42913c2b6f97.zip
flashbench-git: add new package to [pcr]
Diffstat (limited to 'pcr/flashbench-git')
-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/"
+}