updated on Fri Jan 20 16:18:17 UTC 2012
[aur-mirror.git] / myhdl-hg / PKGBUILD
blobfc7221a03cf1c56b4c4f1b38646006a0681a1a94
1 # Contributor: LUO, Jian <jian (dot) luo (dot) cn _(at)_ gmail (dot) com>
3 pkgname=myhdl-hg
4 pkgver=1031
5 pkgrel=1
6 pkgdesc="a Python-Based Hardware Description Language (mercurial repo)"
7 arch=(i686 x86_64)
8 url="http://www.myhdl.org"
9 _hgroot="http://hg.myhdl.org"
10 _hgrepo="myhdl"
11 source=()
12 depends=('python')
13 makedepends=('mercurial' 'iverilog')
14 optdepends=('iverilog: for Co-Simulation with Icarus Verilog')
15 license=('LGPL')
16 provides=('myhdl')
17 conflicts=('myhdl')
18 md5sums=()
20 build() {
21   cd $startdir/src/$_hgrepo
22   python setup.py install --prefix=/usr --root=$pkgdir
24   # Install license
25   install -m 0644 -D ./LICENSE.txt $startdir/pkg/usr/share/licenses/$pkgname/LICENSE.txt
27   # Make cosimulation modules for Icarus Verilog
28   cd $startdir/src/$_hgrepo/cosimulation/icarus
29   make || return 1
30   install -m 0755 -D ./myhdl.vpi $pkgdir/usr/lib/ivl/myhdl.vpi
32 # vim: ts=2 sw=2 et ft=sh