updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / myhdl / PKGBUILD
blob31d1f67de03965042e26daf23bcbe4d9aaf21c59
1 # Contributor: LUO, Jian <jian (dot) luo (dot) cn _(at)_ gmail (dot) com>
3 pkgname=myhdl
4 pkgver=0.6
5 pkgrel=1
6 pkgdesc="a Python-Based Hardware Description Language"
7 arch=(i686 x86_64)
8 url="http://www.myhdl.org"
9 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
10         conditional_expression.patch)
11 depends=('python')
12 makedepends=('iverilog')
13 optdepends=('iverilog: for Co-Simulation with Icarus Verilog')
14 license=('LGPL')
15 md5sums=('7d4d0fc0f28ccc48b256734b57d71e2a'
16          'b137948aeefc37e5d012458c25d4ad6d')
18 build() {
19   cd $startdir/src/$pkgname-$pkgver
20   # Patch for conditional expression
21   patch -Np0 -i $srcdir/conditional_expression.patch || return 1
22   # Build and install python files
23   python setup.py install --root=$pkgdir --prefix=/usr
25   # Install license
26   install -m 0644 -D ./LICENSE.txt $startdir/pkg/usr/share/licenses/$pkgname/LICENSE.txt
28   # Make cosimulation modules for Icarus Verilog
29   cd $startdir/src/$pkgname-$pkgver/cosimulation/icarus
30   make || return 1
31   install -m 0755 -D ./myhdl.vpi $pkgdir/usr/lib/ivl/myhdl.vpi
33 # vim: ts=2 sw=2 et ft=sh