summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD32
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9fe3ba8cdea
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = diskgraph-git
+ pkgdesc = Monitor for disk IO
+ pkgver = r23.a832afd
+ pkgrel = 1
+ url = https://github.com/stolk/diskgraph
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ depends = glibc
+ provides = diskgraph
+ conflicts = diskgraph
+ source = diskgraph-git::git+https://github.com/stolk/diskgraph
+ sha256sums = SKIP
+
+pkgname = diskgraph-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..928912b5a1e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>
+
+pkgname=diskgraph-git
+pkgver=r23.a832afd
+pkgrel=1
+pkgdesc="Monitor for disk IO"
+arch=('x86_64')
+url="https://github.com/stolk/diskgraph"
+license=('MIT')
+depends=('glibc')
+makedepends=('git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("$pkgname::git+$url")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$pkgname"
+ make
+}
+
+package() {
+ cd "$pkgname"
+ install -Dvm 755 diskgraph -t "$pkgdir/usr/bin/"
+ install -Dvm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+ install -Dvm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+}