# $Id: PKGBUILD 62313 2012-01-19 07:59:07Z arodseth $ # Maintainer: Sergej Pupykin # Contributor: Víctor Martínez Romanos pkgname=qucs pkgver=0.0.16 pkgrel=1 pkgdesc="An integrated circuit simulator with a graphical user interface" arch=('i686' 'x86_64' 'mips64el') url="http://qucs.sourceforge.net" license=('GPL') depends=('qt3') optdepends=('freehdl: to permit digital circuit simulation' 'asco: to enable circuit optimization' 'perl') source=(http://downloads.sourceforge.net/sourceforge/qucs/$pkgname-$pkgver.tar.gz qucs-gcc-4.5.1.patch) md5sums=('c916502171d422ab168fe5fc681b29d8' '6fd31dc632cdef53f8c2566ad782901a') build() { cd $srcdir/$pkgname-$pkgver . /etc/profile.d/qt3.sh export PATH=$QTDIR/bin:$PATH [ $NOEXTRACT -eq 1 ] || patch -p1 <$srcdir/qucs-gcc-4.5.1.patch [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr make make DESTDIR=$pkgdir install }