summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55061ae661138d13d90f4deb5cb037c0a7f2a975 (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: BrainDamage
pkgname="diagram-git"
pkgver=0.2.23.r10.gc6895c1
pkgrel=2
pkgdesc="Text mode diagrams using UTF-8 characters and fancy colors"
arch=(any)
url="https://github.com/tehmaze/diagram"
license=("MIT")
depends=("python")
makedepends=('git' 'python-setuptools')
md5sums=("SKIP")
source=("git+https://github.com/tehmaze/diagram.git")

pkgver() {
	cd "diagram"
	git describe --tags | sed 's/^v//; s/-/.r/; s/-/./'
}

build () {
	cd "diagram"
	python setup.py build
}

package() {
	cd "diagram"
	python setup.py install --root="$pkgdir/" --prefix="/usr"
}