summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a08285005a24a646dca5a8df4417c3f7393a2380 (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
# Maintainer: Julian Daube <joposter (at) gmail (dot) com>
# Contributor: Julian Daube <joposter (at) gmail (dot) com>

_pkgname=python-hdlparse
pkgname=$_pkgname-git
pkgver=r20.be7cdab
pkgrel=1
pkgdesc="Simple parser for extracting VHDL documentation"

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

depends=("python")
makedepends=("python-setuptools")

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")