summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96558cdb2f6f4ae98e26327c6dc0a8ea0a663a49 (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
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Julian Daube <joposter (at) gmail (dot) com>
# Contributor: Julian Daube <joposter (at) gmail (dot) com>

_pkgname=symbolator
pkgname=$_pkgname-git
pkgver=r38.a9b24e4
pkgrel=1
pkgdesc="HDL symbol generator"

arch=("any")
license=("mit")
url="https://github.com/kevinpt/symbolator.git"
provides=("$_pkgname")

depends=("python" "python-hdlparse" "python-cairo" "python-docutils")
makedepends=("python-setuptools")
optdepends=("sphinx: for symbolator sphinx integration support")

source=("$_pkgname::git+$url")

pkgver() {
	cd "$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$_pkgname"
	python setup.py build
}

package() {
	cd "$_pkgname"
	python setup.py install --root="$pkgdir" --optimize=1 --skip-build

	install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/"$_pkgname"/LICENSE
}

md5sums=("SKIP")