summaryrefslogtreecommitdiff
path: root/community/qucs/PKGBUILD
blob: 411fc3b3742dded966a9360943a5be82585dc168 (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
31
# $Id: PKGBUILD 62313 2012-01-19 07:59:07Z arodseth $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Víctor Martínez Romanos <vmromanos@gmail.com>

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
}