summaryrefslogtreecommitdiff
path: root/community/freehdl
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/freehdl
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/freehdl')
-rw-r--r--community/freehdl/PKGBUILD30
-rw-r--r--community/freehdl/freehdl.install20
2 files changed, 50 insertions, 0 deletions
diff --git a/community/freehdl/PKGBUILD b/community/freehdl/PKGBUILD
new file mode 100644
index 000000000..02bd0aad6
--- /dev/null
+++ b/community/freehdl/PKGBUILD
@@ -0,0 +1,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
+}
diff --git a/community/freehdl/freehdl.install b/community/freehdl/freehdl.install
new file mode 100644
index 000000000..15e22d4b5
--- /dev/null
+++ b/community/freehdl/freehdl.install
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(fire.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}