summaryrefslogtreecommitdiff
path: root/community/freehdl/PKGBUILD
blob: 02bd0aad695988b45b1b6df27963c1e60062d82c (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
# $Id: PKGBUILD 82362 2013-01-16 10:08:50Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Neil Darlow <neil@darlow.co.uk>
# Contributor: Jens Maucher <defcon@archlinux.us>

pkgname=freehdl
pkgver=0.0.8
pkgrel=5
pkgdesc='An open-source (C++ generating) VHDL simulator'
arch=('i686' 'x86_64')
url='http://freehdl.seul.org'
license=('GPL')
depends=('perl')
optdepends=('gtkwave: to view output when run standalone')
options=('libtool')
install=${pkgname}.install
source=("http://downloads.sourceforge.net/qucs/$pkgname-$pkgver.tar.gz")
md5sums=('aa1382b8b5c6a972e9652c648a9278b5')

build() {
  cd "${srcdir}"/$pkgname-$pkgver
  sed -i 's|my $cpplibs = .*|my $cpplibs = "-lm -lfreehdl-kernel -lfreehdl-std";|g' v2cc/gvhdl-local v2cc/gvhdl.in
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver
  make DESTDIR="${pkgdir}" install
}