summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD29
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..415e7ccbfa5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Sat Dec 3 06:19:44 UTC 2016
+pkgbase = flow-git
+ pkgdesc = A realtime log analyzer .
+ pkgver = 0.3.4.98
+ pkgrel = 1
+ url = https://github.com/viseztrance/flow
+ arch = x86_64
+ arch = i686
+ license = GPL-3.0
+ makedepends = cargo
+ provides = flow
+ conflicts = flow
+ source = flow-git::git+https://github.com/viseztrance/flow.git
+ sha256sums = SKIP
+
+pkgname = flow-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5f36b49db01
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+pkgname=flow-git
+pkgver=0.3.4.98
+pkgrel=1
+pkgdesc="A realtime log analyzer ."
+arch=('x86_64' 'i686')
+url="https://github.com/viseztrance/flow"
+license=('GPL-3.0')
+depends=()
+makedepends=('cargo')
+optdepends=()
+provides=('flow')
+conflicts=('flow')
+source=($pkgname::git+https://github.com/viseztrance/flow.git)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD)
+}
+
+build() {
+ cd $pkgname
+ cargo build --release
+}
+
+package() {
+ cd $pkgname
+ install -D -m755 "$srcdir/$pkgname/target/release/flow" "$pkgdir/usr/bin/flow"
+}