diff options
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 36 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2ece0fbd5903 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = ttyplot-git + pkgdesc = a realtime plotting utility for terminal with data input from stdin + pkgver = r22.ac8c3c3 + pkgrel = 1 + url = https://github.com/tenox7/ttyplot + arch = x86_64 + license = Apache 2.0 + source = git+https://github.com/tenox7/ttyplot.git + sha256sums = SKIP + +pkgname = ttyplot-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..827802068ef6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +pkgname=ttyplot-git +pkgver=r22.ac8c3c3 +pkgrel=1 +pkgdesc="a realtime plotting utility for terminal with data input from stdin" +arch=('x86_64') +license=('Apache 2.0') +url="https://github.com/tenox7/ttyplot" +source=('git+https://github.com/tenox7/ttyplot.git') +sha256sums=('SKIP') + + +pkgver() { + cd ttyplot + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $srcdir/ttyplot + make +} + +package() { + install -D -m755 $srcdir/ttyplot/ttyplot $pkgdir/usr/bin/ttyplot +} |