1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Neil Darlow <neil@darlow.co.uk>
3 # Contributor: Jens Maucher <defcon@archlinux.us>
8 pkgdesc='An open-source (C++ generating) VHDL simulator'
10 url='http://freehdl.seul.org'
13 optdepends=('gtkwave: to view output when run standalone')
15 source=("https://downloads.sourceforge.net/qucs/$pkgname-$pkgver.tar.gz"
18 "acl-NULL-check.patch"
19 "declarative_region.patch"
21 "gvhdl_tag_command.patch")
22 sha256sums=('7f0978f8252329450de43e98c04c15fdd8a3f2bdc5ca91f75f8f5dd280c6ed84'
23 '08d49fc621d48099afcbe42c99ba25474409dbe5c16748a1cd01f50c0e1bae25'
24 '86f35a7cb915bab69763808c59b295c15e198bb21f6383214027dd9ea7490867'
25 'e59323840387514be8300f088051e60e39e73b50383958c81c19c4e4575b0094'
26 '5b4b23f98b666818a0d8bd484e899960c1951631c8a21928a072e19b3c1fc6e6'
27 'bf1ed53f2b83e91e580c5300d157322cf70aeb955685fa91b1358f474efef5ff'
28 'a7e441b42f3eae61eaff681713094fbe332d3ab8685e215e21c975eb8af60036')
31 cd "${srcdir}"/$pkgname-$pkgver
32 rm ieee/math_real.cc \
35 ieee/std_logic_1164.cc \
36 ieee/std_logic_arith.cc \
37 ieee/std_logic_signed.cc \
38 ieee/std_logic_unsigned.cc \
41 #patch -p1 -i "$srcdir"/build-fix.patch
42 patch -p1 -i "$srcdir"/cpp-modern.patch
43 patch -p1 -i "$srcdir"/acl-NULL-check.patch
44 patch -p1 -i "$srcdir"/declarative_region.patch
45 patch -p1 -i "$srcdir"/gentoo-qa.patch
46 patch -p1 -i "$srcdir"/gvhdl_tag_command.patch
50 cd "${srcdir}"/$pkgname-$pkgver
51 CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=1" ./configure --prefix=/usr
56 cd "${srcdir}"/$pkgname-$pkgver
57 make DESTDIR="${pkgdir}" install