summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD27
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..74b5bc27f44
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = termgraph-git
+ pkgdesc = A python command-line tool which draws basic graphs in the terminal.
+ pkgver = 0.2.0.r4.gc40b864
+ pkgrel = 1
+ url = https://github.com/mkaz/termgraph
+ arch = x86_64
+ license = MIT
+ makedepends = python
+ depends = python
+ provides = termgraph
+ conflicts = termgraph
+ source = termgraph::git+https://github.com/mkaz/termgraph
+ sha512sums = SKIP
+
+pkgname = termgraph-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a188b7164fe
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Kevin Kuehler <keur@ocf.berkeley.edu>
+
+_pkgname=termgraph
+pkgname="$_pkgname-git"
+pkgver=0.2.0.r4.gc40b864
+pkgrel=1
+pkgdesc="A python command-line tool which draws basic graphs in the terminal."
+arch=('x86_64')
+url="https://github.com/mkaz/$_pkgname"
+license=('MIT')
+depends=('python')
+makedepends=('python')
+provides=('termgraph')
+conflicts=('termgraph')
+source=("$_pkgname::git+$url")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}