diff options
author | anonymous | 2017-04-18 14:04:09 +0800 |
---|---|---|
committer | anonymous | 2017-04-18 14:06:35 +0800 |
commit | ef20fac3e6200c33021327fffed03e07a434c112 (patch) | |
tree | 02e1f1e39c9778c79ce0f02f063df9c4424938ed | |
download | aur-ef20fac3e6200c33021327fffed03e07a434c112.tar.gz |
Initial commit
Signed-off-by: anonymous <fuxk12306@gmx.com>
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 26 |
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7c8d7be364cd --- /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 000000000000..2998b87035b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src/ +pkg/ +blktrace* +*.pkg.tar diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1ab64ef09afc --- /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 +} |