#Maintainer: R S Ananda Murthy pkgname=gnucap pkgver=20091207 pkgrel=1 zenver=72 arch=i486 source=("http://www.gnucap.org/devel/gnucap-2009-12-07.tar.gz" "http://www.gnucap.org/gnucap-man.pdf" "http://www.gnucap.org/papers/gnucap-model-compiler.pdf" "http://www.gnucap.org/papers/al-davis-dissertation.pdf" "gnucap.png") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/rsamurti/$pkgname/ docs=("readme" "install" "copying" "changelog" "authors") url=http://www.gpleda.org/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "gnucap (Gnu Circuit Analysis Package)" "Gnucap is the Gnu Circuit Analysis Package. The primary component is" "a general purpose circuit simulator. It performs nonlinear dc and" "transient analyses, fourier analysis, and ac analysis. Gnucap is not" "based on Spice, but some of the models have been derived from the" "Berkeley models. Unlike Spice, the engine is designed to do true" "mixed-mode simulation. Most of the code is in place for future" "support of event driven analog simulation, and true multi-rate" "simulation." ) build() { cd $startdir/src/$pkgname-2009-12-07 ./configure --prefix=/usr --localstatedir=/var \ --sysconfdir=/etc --mandir=/usr/man --infodir=/usr/info make || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp $startdir/src/*.pdf $startdir/pkg/usr/doc/$pkgname-$pkgver cp $startdir/pkg/usr/share/gnucap/doc $startdir/pkg/usr/doc/$pkgname-$pkgver mv $startdir/pkg/usr/share/gnucap/examples $startdir/pkg/usr/doc/$pkgname-$pkgver/examples rm -rf $startdir/pkg/usr/share mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps cp $startdir/src/$pkgname.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/$pkgname.png chmod -x $startdir/pkg/usr/share/icons/hicolor/48x48/apps/$pkgname.png mkdir -p $startdir/pkg/usr/share/applications cat < $startdir/pkg/usr/share/applications/$pkgname.desktop [Desktop Entry] Encoding=UTF-8 Name=Gnucap Comment=True mixed mode circuit simulator Exec=gnucap Terminal=true Type=Application Categories=Science Icon=gnucap StartupNotify=true EOF }