summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD26
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7c8d7be364c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = blktrace-git
+ pkgdesc = Userspace utilities for tracing Linux block layer I/O - Git version
+ pkgver = 1.0
+ pkgrel = 1
+ url = http://brick.kernel.dk/snaps/
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ depends = libaio
+ source = git+https://git.kernel.org/pub/scm/linux/kernel/git/axboe/blktrace.git
+ sha256sums = SKIP
+
+pkgname = blktrace-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..2998b87035b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+src/
+pkg/
+blktrace*
+*.pkg.tar
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1ab64ef09af
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+_name=blktrace
+pkgname=${_name}-git
+pkgver=blktrace.1.1.0.r35.g8772bc4
+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')
+source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/axboe/blktrace.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd ${srcdir}/${_name}
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/${_name}"
+ make
+}
+
+package() {
+ cd "$srcdir/${_name}"
+ make prefix=/usr mandir=/usr/share/man DESTDIR=$pkgdir/ install
+}