Package Details: blktrace-git 1.0-1

Git Clone URL: https://aur.archlinux.org/blktrace-git.git (read-only)
Package Base: blktrace-git
Description: Userspace utilities for tracing Linux block layer I/O - Git version
Upstream URL: http://brick.kernel.dk/snaps/
Licenses: GPL2
Submitter: adam900710
Maintainer: adam900710
Last Packager: adam900710
Votes: 0
Popularity: 0.000000
First Submitted: 2017-04-18 06:06
Last Updated: 2017-04-18 06:06

Latest Comments

jamespharvey20 commented on 2019-09-07 01:45

A patch for PKGBUILD for your consideration.

(It doesn't prevent parallel builds, because the git repo contains a fix for the race condition, unlike release 1.2.0.)

It installs the README file, and builds and installs PDF documentation. The PDF documentation includes critical information the manpages leave out, including some of the column meanings. Sadly, the PDF documentation does not show it has been updated since 2008, so is a bit outdated, but much of it is still relevant.

It also adds git to makedepends(), which is required to download the source.

(NOTE the comments here have an unintended feature/bug, so the index line has the first git commit 1ab.. replaced with a link to a non-existing commit id on this repo. It's also putting < and > around source.)

diff --git a/PKGBUILD b/PKGBUILD
index [`1ab64ef`](https://aur.archlinux.org/cgit/aur.git/commit/?h=blktrace-git&id=1ab64ef)..86355c3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,13 @@
 _name=blktrace
 pkgname=${_name}-git
-pkgver=blktrace.1.1.0.r35.g8772bc4
+pkgver=blktrace.1.2.0.r13.ga7263b8
 pkgrel=1
 pkgdesc="Userspace utilities for tracing Linux block layer I/O - Git version"
 arch=(i686 x86_64)
 license=('GPL2')
 url="<http://brick.kernel.dk/snaps/>"
 depends=('libaio')
+makedepends=('git' 'texlive-core' 'texlive-latexextra')
 source=("git+<https://git.kernel.org/pub/scm/linux/kernel/git/axboe/blktrace.git>")
 sha256sums=('SKIP')

@@ -17,10 +18,13 @@ pkgver() {

 build() {
   cd "$srcdir/${_name}"
   make
+  make docs
 }

 package() {
   cd "$srcdir/${_name}"
   make prefix=/usr mandir=/usr/share/man DESTDIR=$pkgdir/ install
+  install -Dm644 README "${pkgdir}/usr/share/docs/${pkgname}/README"
+  install -Dm644 doc/blktrace.pdf "${pkgdir}/usr/share/docs/${pkgname}/blktrace.pdf"
 }