From 46d1542e94c1e9f4e5b956bb314b42913c2b6f97 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 2 Feb 2017 02:37:17 -0300 Subject: flashbench-git: add new package to [pcr] --- pcr/flashbench-git/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pcr/flashbench-git/PKGBUILD (limited to 'pcr/flashbench-git') 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 +# Contributor (Arch): Marti Raudsepp + +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/" +} -- cgit v1.2.3