blob: 9aa2863de601b2b490194611c5cb056ac082f390 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Maintainer: Kevin Kuehler <keur@ocf.berkeley.edu>
_pkgname=termgraph
pkgname="$_pkgname-git"
pkgver=0.4.2.r15.gb10150d
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"
}
|