summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorquininer kel2016-12-03 14:19:50 +0800
committerquininer kel2016-12-03 14:19:50 +0800
commitcd25f75edab1c1e0193a20a51df7e700bdb83ee9 (patch)
treed85cecbebad857f35571d5bdcc742686a42f776b /PKGBUILD
downloadaur-flow-git.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
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"
+}