updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / ngspice-openmp / PKGBUILD
blob1fd69eb9457ad4e396c9af33eb0c3f33b0325072
1 # Maintainer: Matteo Agostinelli <agostinelli@gmail.com>
3 _pkgname=ngspice
4 pkgname=ngspice-openmp
5 pkgver=23
6 pkgrel=1
7 pkgdesc="Mixed-level/Mixed-signal circuit simulator based on Spice3f5, Ciber1b1, and Xspice. Optimized for multi-core processors."
8 url="http://ngspice.sourceforge.net"
9 license=('BSD')
10 arch=('i686' 'x86_64')
11 depends=('libxaw' 'libedit')
12 replaces=('ngspice')
13 conflicts=('ngspice')
14 source=(http://downloads.sourceforge.net/ngspice/$_pkgname-$pkgver.tar.gz)
15 md5sums=('bc7faa7348e307145b3bb04ef70a87d2')
17 build() {
18   cd "${srcdir}/${_pkgname}-${pkgver}"
20   ./configure --prefix=/usr \
21               --mandir=/usr/share/man \
22               --infodir=/usr/share/info \
23               --enable-xspice \
24               --with-editline=yes \
25               --enable-openmp \
26               --enable-x
27   make || return 1
28   make DESTDIR="$pkgdir" install
29   install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
30   # rm "$pkgdir/usr/share/info/dir" || return 1