summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db8723919a81297e0929ee8fce47ecf2e014c107 (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
# Maintainer: csantosb <csantosb dot inventati dot org>
pkgname=cocotb-git
pkgver=r2445.e9490fab
pkgrel=1
pkgdesc="Coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python"
arch=('any')
url="https://github.com/cocotb/cocotb"
license=('BSD')
conflicts=(cocotb)
provides=('cocotb')
depends=('python')

makedepends=('git')
optdepends=('iverilog: for simulating verilog designs'
	    'ghdl: for simulating VHDL designs')

options=(!emptydirs)
source=('git+https://github.com/cocotb/cocotb')
sha256sums=('SKIP')

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

package() {
    cd "${srcdir}/cocotb"
    python setup.py install --root="${pkgdir}/" --optimize=1
    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
}